• Resolved panograph

    (@panograph)


    Hi,

    our template is Entrada by Waituk that is limited to search – Site or (Woocommerce) Shop.
    Installed Relevanssi and it doesn’t seem to be index Categories well, since we see no result for Category Titles.

    Will the premium solve this, please?

    Thanks,
    Tamas

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

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

    (@msaari)

    The free version of Relevanssi will never show categories in search results. Searching for a category will only return posts in that category. If you want to see category pages in the search results, you need to use Premium.

    Thread Starter panograph

    (@panograph)

    Hi Mikko, many thanks for your reply and we will license Premium

    Thread Starter panograph

    (@panograph)

    One more question: I tested the search again with words that are in some Pages created with WPBakery Page Builder 5.4 and it did not deliver result from Pages.

    query_posts() is not in our template (Entrada)

    Does Premium solve it, pls?

    Plugin Author Mikko Saari

    (@msaari)

    It’s quite possible the page builder is storing the page content somewhere Relevanssi can’t see it. The first step in fixing it is to make Relevanssi index all custom fields. If that doesn’t solve it, then it takes some figuring out where the content is being stored, and how to make it visible for Relevanssi.

    Premium doesn’t help, some custom coding will help.

    Thread Starter panograph

    (@panograph)

    Unfortunately setting Custom fields to All doesn’t solve it.
    I see that in the free version we can include vc_grid_item in the index, but it is Excluded from search by default.
    Actually the words not indexed/found are in the [vc_column] element of WPBakery.
    Any plans to include these, please?

    Plugin Author Mikko Saari

    (@msaari)

    Relevanssi doesn’t exclude anything by default; if something is being excluded, it’s because your page builder is not showing it to Relevanssi.

    I don’t know how this works on your site and why the content is invisible to Relevanssi; that’s impossible for me to say without examining your site more closely. But I’ve seen cases where the page builder encrypts the content, so it needs to be decrypted so that Relevanssi can read it, so anything seems to be possible.

    Page builders in general make life with Relevanssi more difficult, in many different ways.

    If you want to figure this out, a good first step is to add this to your theme functions.php and then go save a post that’s having this problem:

    add_filter('relevanssi_post_content', 'rlv_content_test');
    function rlv_content_test($content) {
        var_dump($content);
        exit();
    }

    This will show you exactly how Relevanssi sees the post content. That will give some pointers on how to proceed.

    Thread Starter panograph

    (@panograph)

    Thanks Mikko, added the code, saved the post, but it resulted this what can be seen on the screenshot

    vc code after saving

    and also it made indexing to fail

    Plugin Author Mikko Saari

    (@msaari)

    Yes, it’s supposed to make the indexing fail.

    Looks like VC stores parts of the post content in the shortcode attributes. Relevanssi doesn’t see that.

    Try adding this to your theme functions.php:

    add_filter('pre_option_relevanssi_disable_shortcodes', 'rlv_disable');
    function rlv_disable($shortcodes) {
    	if ($shortcodes === false) $shortcodes = "";
    	$shortcodes = "content_column,";
    	return $shortcodes;
    }

    Then rebuild the index. Does that help?

    Thread Starter panograph

    (@panograph)

    Thanks Mikko, but unfortunately it did not help.

    None of the underlined words were fetched/found

    vc-code

    Plugin Author Mikko Saari

    (@msaari)

    What is needed here is a filtering function on relevanssi_post_content filter hook that removes the shortcodes, but keeps those attributes. Do that, and the content will be included.

    Thread Starter panograph

    (@panograph)

    Hi Mikko,

    do you mean that the change in the code like this below will help, pls?

    
    add_filter('relevanssi_post_content', 'rlv_disable');
    function rlv_disable($shortcodes) {
    	if ($shortcodes === false) $shortcodes = "";
    	$shortcodes = "content_column,";
    	return $shortcodes;
    }
    Plugin Author Mikko Saari

    (@msaari)

    relevanssi_post_content gets all the post content in a parameter. You need a function that’ll process that content, manually stripping off all the content_column and entrada_services_block shortcodes, while keeping the content inside the attributes.

    Thread Starter panograph

    (@panograph)

    thanks Mikko, but I do not have that level of proficiency in coding, so I need to look for a ready made plugin

    Plugin Author Mikko Saari

    (@msaari)

    You’re looking for something that nobody has needed before you, so there’s nothing ready-made.

    If you buy a Premium license, this is something that can be included in the support license. This is also fairly entry-level PHP stuff, so any local WordPress developer should be able to help you with this.

    Thread Starter panograph

    (@panograph)

    thanks Mikko, but already I found another premium plugin that does the job well

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Inclusion of Category search’ is closed to new replies.