Search Current Page

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11258
    jbeasley
    jbeasley
    Participant

    I want to be able to only search the current page that the seach box is on not any of the other 70+ pages on the website. How do I do that?

    #11261
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    In this case the plugin would only return one single result, the current page only – which I’m not sure if that’s what you need?

    It’s not possible without a modification as in the ajax request the originating page ID is not sent. If this is what you want, let me know, and I will look up a possible modification for you.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #11271
    jbeasley
    jbeasley
    Participant
    You cannot access this content.
    #11273
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Justen,

    When exluding bulk amounts of content, I usually I recommend excluding categories, but since these are pages, this is not an option. Also, if you don’t need post, then on the General Options -> Sources panel turn off the Search in Posts option: https://i.imgur.com/7PUeqlq.png

    For the rest of the pages, there are two possibilities left:
    1. To exclude the pages on the back-end on the Advanced Options -> Exclude results panel: https://i.imgur.com/45tcrK4.png

    2. Explicitly include only the required pages via a custom code: https://goo.gl/pEu890

    I highly recommed the 1. solution if the number of pages excluded is lower than the remaining.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.