• Do you have any suggestions, or are you aware of some plugin that might already do the following:

    Standard wordpress search and most search-related plugins are capable of searching a page that uses Multipage. It will find the search term, and can identify the section of text in which the search term is found, but if you click on this search result, it will take you to the top of the Page, not to the “sub-page” section within the page. I am only referring to searches made while on the website, not to search engines like Google.

    To be sure my question is clear, I’ll give an example. Say you have one WordPress page that uses Multipage and has 20 “subpages” within this page. A search for a term finds a result on this page, and it happens to be within the 16th subpage. But when you click to jump to the result, it will take you to “page 1” at the top. You’ll see the 20 sub-pages listed below, but you have no indication on which of these 20 pages the search result is to be found, so you have to navigate through all 20 pages to find what you’re looking for.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sergio De Falco

    (@sgr33n)

    Hi,
    Would you send me a living example?
    Thanks.

    Thread Starter mrgad

    (@mrgad)

    Thank you for the quick response! Here is an example in which standard WordPress search is being used, as opposed to using a plugin such as SearchIQ that will display the context in which a search term is found.

    https://wild.strangersofkindness.com/?s=denim

    The above will correctly find the search term, but see it as occurring on the “page” as opposed to on the “subpage” #4 in the Dungaree section. The best UX would show the excerpt from the #4 subpage and the click to view more would jump to that subpage, as opposed to starting you at the beginning and having you guess on which subpage the result is to be found.

    Thank you again for being so responsive!

    Plugin Author Sergio De Falco

    (@sgr33n)

    Hi,
    The problem is that the target page doesn’t have a querystring which we can hook to look for the searched term. This part of the plugin is managed by the nextpage WordPress core function this is the way it works. Maybe because the page is predominant, because it defines the argument of the post so returning the whole article as a result have a reason.
    Anyway I can investigate into this.

    Thread Starter mrgad

    (@mrgad)

    Thank you! My sketch for the function would look to see if the result page uses multipage. If so then does the resulting text occur, for example, after the nth iteration of multi page but before n+1? If so then the function would return [page url]/n/. That way clicking to view search results would take you right to the correct subpage.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Searching Multipage Results’ is closed to new replies.