Forum: Nearby Posts

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Nearby Posts premium extension please open a new premium support ticket.

[Resolved]Nearby posts returning no results

Forums Nearby Posts Nearby posts returning no results

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
  • #46160


    I am glad we got this resolved and everything is now working.

    Thank you also for taking the time to post the kind review :).

    Just as an FYI, instead of inserting the shortcode on each of your posts you could probably use a custom function using the ‘the_content’ hook to dynamically apply it to all of your posts.

    That will save you time specially when you need to update the shortcode attributes.



    I just had a look at how “the_content” works. My level of skill doesn’t extend to that just yet 🙂

    Thanks again.


    This simple script ( added to the functions.php file of your theme ) will dynamically display the Single Location shortcode at the end of the content on all of your posts.
    Just add the shortcode attributes as you wish.


    Ah, that’s pretty impressive!

    My problem is that 95% of my posts are location specific but a few are not. It would not work for that 5% of posts – having a map doesn’t work for posts in that specific category.

    Unless there is a way to exclude a specific category from the script, unfortunately, I’m stuck with having to include the shortcode in each individual post. My php skills are not good enough to do that exclusion but I certainly appreciate your suggested code solution.

    Thanks anyway and kind regards!


    This script will show the map on all posts except those with category “uncatecorized”. Yo can chance that to any of your categories and you can add more into the array.


    The code is messed up a bit. Replace &#038&#038 with &&

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic.