• tijsgerritsen

    (@tijsgerritsen)


    Hi,

    I hope your are able to help us.
    Our website (Avada theme) is not showing the Relevanssi search results. The Admin search is working fine. This has happened before and I found a solution on this forum:

    add_action( ‘init’, function( $query ) {
    if ( isset( $_GET[‘fs’] ) ) {
    unset( $_GET[‘fs’] );
    }
    } );

    Yesterday the problem occurred again. After updating Avada the problem seemed solved but today the default search results are being displayed again :(.

    Thanks in advance!
    Tijs

    Versions
    WordPress: 6.8.1 (latest)
    Host: WordPress.com with own domain name.
    Avada: 7.12.1 (latest)
    Relevanssi: 4.24.5 (latest)

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

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

    (@msaari)

    There are strange things going on. Why are there only three results on the first page, but 15 on the second page? Then three more on page 3 and four on page 4. That doesn’t make sense. What should the Relevanssi results look like?

    Thread Starter tijsgerritsen

    (@tijsgerritsen)

    Hi Mikko,

    Thanks for replying so promptly. The admin search correctly lists this article first (search string is in the title). Is that the answer to your question? I wanted to attach a screenshot of the Admin search results but I don’t see how to do that here.

    Plugin Author Mikko Saari

    (@msaari)

    That post cannot be found at all. Something’s funny there. The search does respond to Relevanssi parameters: setting the post_types to page removes the results. So I think it’s Relevanssi, but with some settings overriding the correct settings.

    Can you use Query Monitor to figure out the search query? You can find instructions here.

    Thread Starter tijsgerritsen

    (@tijsgerritsen)

    Hi Mikko,
    Thanks again for taking the time to provide this free support. Much appreciated. The Query Monitor outputs this:

    SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 350 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf
    FROM wp_relevanssi AS relevanssi
    WHERE relevanssi.term = ‘modemuze’
    ORDER BY tf DESC
    LIMIT 500 /* hedendaagsesieraden.nl/?s=modemuze&post_type%5B%5D=any&search_limit_to_post_titles=0&add_woo_product_skus=0&fs=1 request_id: d6df9984936c9803adcd8b9d1ca91068 */

    Plugin Author Mikko Saari

    (@msaari)

    There are no restrictions whatsoever in that query: it should return all posts with the term “modemuze”. That means the search should work fine.

    I’m afraid I can’t tell more from just looking at your website; I’d need to see what’s going on inside. Avada is a tricky thing – most of the time it seems to work fine with Relevanssi, but sometimes it causes a headache.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Avada incompatibility?’ is closed to new replies.