• the search result is including all posts below the correct result.

    See in the image example, I searched for the word “dor”(pain in English).

    Only the first result has the word searched, but it is listing all other posts below.

    This is happening with all the research.

    See in https://imgur.com/a/MuJxW

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, do you use any plugins that could cause this issue? Have you tried to disable your plugins to check.

    Thread Starter Paulo Surya Bento

    (@paulosuryabento)

    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 –>

    Theme Author oceanwp

    (@oceanwp)

    Hi, what do you mean? There is no category on the search results page.

    Thread Starter Paulo Surya Bento

    (@paulosuryabento)

    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

    Theme Author oceanwp

    (@oceanwp)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘problems with search result’ is closed to new replies.