Wordpress search not able to find the category

I have 3 to 4 categories on my website. I am using WordPress search but when I am searching my category then I am gettin

I have 3 to 4 categories on my website. I am using WordPress search but when I am searching my category then I am getting

Nothing Found

also, I tried to search the subcategory then also I am getting the same message.

Would you help me out with this issue?

search.php

 <section id="primary" class="content-area mainSearch">
    <main id="main" class="site-main">
      <div class="equalPadding">
        <div class="cp-seeWrapper">
    <?php if ( have_posts() ) : 
          get_search_form();//search form
          ?>
          <div class="resultCount"><?php
          global $wp_query;
          echo $wp_query->found_posts.' RESULTS';
            ?></div>
         <div class="row">
      <?php 

       while (have_posts()){the_post();?>
        //displaying result here

       <?php } ?>

      <?php 
    else :
      get_template_part( 'template-parts/content', 'none' );

    endif;
    ?>
          </div>
    </div>
    </div>
    </main><!-- #main -->
  </section><!-- #primary -->

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744988154a4604737.html

相关推荐

  • Wordpress search not able to find the category

    I have 3 to 4 categories on my website. I am using WordPress search but when I am searching my category then I am gettin

    19小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信