GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Resolved]Exclude from search if no GEO location has been set.

Home Forums Support Exclude from search if no GEO location has been set.

This topic contains 2 replies, has 2 voices, and was last updated by  dannhanks 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59491

    dannhanks
    Participant

    Hi, plugin working great! Good work!!!

    Is there a way for me to exclude posts from the search which don’t have GEO location set?

    I have found the exclude posts add-on and also seen the setting to not allow the post if it doesn’t have GEO location set but I need it so that if search is submitted without a location, that the posts without GEO location will be hidden.

    any help would be great!

    #59502

    Eyal Fitoussi
    Keymaster

    Hello @dannhanks,

    Thank you for the feedback.

    Add this line of code to the functions.php file of your child theme:

    I hope this helps.

    #59512

    dannhanks
    Participant

    Hi, this is perfect, thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.