Well, in the end, just the shortcodes makes the indexing lasting a long time. Custom fields are fine.
I am not able to disable just some shortcodes because that is the core functionality of the whole template. I wrote to the template author if he can help, I hope so but hard to say when he will react. The fact is that in this moment we are not able to use your plugin correctly :-(.
It would be a possible fix if we could for example define which categories to index (then we could select just all the regular posts) or to choose what post types (defined in the template) to use.
Edit: I am now trying functions.php and excluding some categories…
Edit 2: ok, it seems to be working fine if I exclude the category. Does it include also all the subcategories? Please see the code below, is it correct? Because I don’t want to use any term, just the parent category GAMES and all subcategories, no matter the term…
add_filter(‘relevanssi_do_not_index’, ‘rlv_exclude_cat’, 10, 2);
function rlv_exclude_cat($exclude, $post_id) {
if (has_term( ”, games, $post_id )) $exclude = true;
return $exclude;
}
Edit 3: no it’s not working. I was checking the search during the index and at the beginning everything was fine. But later on it looks like the correct search was rewritten by a wrong post :-/
-
This reply was modified 4 years, 10 months ago by
keengamer.
-
This reply was modified 4 years, 10 months ago by
keengamer.
-
This reply was modified 4 years, 10 months ago by
keengamer.
-
This reply was modified 4 years, 10 months ago by
keengamer.