This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search Current Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11258
    jbeasleyjbeasley
    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 MarcinkoErnest 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.

    #11271
    jbeasleyjbeasley
    Participant

    You cannot access this content.

    #11273
    Ernest MarcinkoErnest 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: http://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: http://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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.