• alamcp

    (@alamcp)


    Hello!

    I’ve been struggling to figure out why Search could find city related content on one page and not another. If you use the search box for “San Francisco” — it manages to find the San Francisco that’s on the Construction page (as an accordion title), but doesn’t find it from the Resources page (where it is set up similarly as an accordion title). Both page sections are included via Content blocks. Why is one getting found but not the other?

    I double checked and made sure I’m not excluding the Resources page from any searches, and the set up between both pages are almost identical… any ideas?

    Your help is greatly appreciated!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    I’m guessing Relevanssi is just not seeing the accordion titles. “San Francisco” appears on the Construction page outside the accordion titles, in the list under the map, and Relevanssi is seeing that.

    Now, the question is where those accordion titles are stored. A custom field is a likely place, so one thing you can do is to make Relevanssi index all custom fields. That will introduce all sorts of garbage in the results as well, but it’s a fast way to see if it helps.

    If that indeed fixes the problem, then you can figure out which custom field it is exactly that stores the accordion titles, and you can have Relevanssi index just that.

    Thread Starter alamcp

    (@alamcp)

    Pinged some other plugin authors and I’ve come to the conclusion that it’s not the accordions, but rather that the content is stored separately (I’m using the plugin Content Blocks (Custom Post Widget) to organize the content so that the clients can easily manage the site without breaking things).

    If I allow Relevanssi to index the Content Blocks, it will also show each separate Content Block as it’s own page, which is not ideal. Is there anyway to have Relevanssi index something but not display it? Or rather, that it can be told to attribute the Content Blocks content to the page it’s being called on?

    Essentially like the way Google search would work? I tried to install a custom Google search but of course that displays ads, so I can’t use it, but otherwise it functions the way I’d like the WP search to work.

    Appreciate any insights/suggestions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search not working on particular page’ is closed to new replies.