Hello, do you use any plugins that could cause this issue? Have you tried to disable your plugins to check.
I was able to solve it, it was the facebook pixel plugin that was causing this.
But I have another problem.
In the search result the categories appear, I would like to see only the posts
Today my content.php is:
<?php
/**
* Search result page entry content
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}
global $post;
// Excerpt length
$length = apply_filters( ‘ocean_search_results_excerpt_length’, ’30’ ); ?>
<div class=”search-entry-summary clr”<?php oceanwp_schema_markup( ‘entry_content’ ); ?>>
<p>
<?php
// Display excerpt
if ( has_excerpt( $post->ID ) ) {
the_excerpt();
}
// Display custom excerpt
else {
echo wp_trim_words( strip_shortcodes( $post->post_content ), $length );
} ?>
</p>
</div><!– .search-entry-summary –>
Hi, what do you mean? There is no category on the search results page.
Maybe I was not very clear in my explanation.
The first question I was able to solve with the exclusion of a plugin. But now doing the search again, besides the posts in the result also appear the categories.
I need only posts to appear
See this new print for the new search for the word “dor”
View post on imgur.com
Oh I taught you meant there was a category meta 🙂
This time, you are sure it doesn’t come from a plugin? Because if you check the demos, if you do a search, the search is for page and posts, not category.