Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search results don't fit well › Reply To: search results don't fit well
September 3, 2024 at 12:39 pm
#49101
Keymaster
Hi,
When I check the original (non Elementor) post content stored in the database, then this includes all of those keywords: https://i.imgur.com/aKFQkru.png
I have added the following custom code snippet to prevent that from indexing:
add_filter('asp_post_content_before_tokenize_clear', function($content, $the_post) {
return apply_filters('the_content', $content);
}, 10, 2);
Now it should be all right.