最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

permalinks - Why is page2 not working?

programmeradmin13浏览0评论

This is my search page code can anyone help me figure out what is the problem I m having no content in my page 2

            <div class="<?php echo esc_attr($blog_type);?>">
                <div class="row">
                    <!-- Blog Archive -->
                    <div class="posts-masonry">
                        <!-- Blog Post-->
                        <?php get_template_part('template-parts/layouts/blog', 'loop');?>                       
                    </div>
                    <!-- Pagination -->  
                    <div class="col-md-12 col-xs-12 col-sm-12">
                        <?php adforest_pagination();?>
                    </div>
                </div>
            </div>

            <!-- Right Sidebar -->
            <?php
            if (isset($adforest_theme['blog_sidebar']) && $adforest_theme['blog_sidebar'] == 'right')
                get_sidebar();

            if (!isset($adforest_theme['blog_sidebar']))
                get_sidebar();
            ?>
            <!-- Middle Content Area  End -->
        </div>
        <!-- Row End -->
    </div>
    <!-- Main Container End -->
</section>

This is my search page code can anyone help me figure out what is the problem I m having no content in my page 2

            <div class="<?php echo esc_attr($blog_type);?>">
                <div class="row">
                    <!-- Blog Archive -->
                    <div class="posts-masonry">
                        <!-- Blog Post-->
                        <?php get_template_part('template-parts/layouts/blog', 'loop');?>                       
                    </div>
                    <!-- Pagination -->  
                    <div class="col-md-12 col-xs-12 col-sm-12">
                        <?php adforest_pagination();?>
                    </div>
                </div>
            </div>

            <!-- Right Sidebar -->
            <?php
            if (isset($adforest_theme['blog_sidebar']) && $adforest_theme['blog_sidebar'] == 'right')
                get_sidebar();

            if (!isset($adforest_theme['blog_sidebar']))
                get_sidebar();
            ?>
            <!-- Middle Content Area  End -->
        </div>
        <!-- Row End -->
    </div>
    <!-- Main Container End -->
</section>
Share Improve this question asked Jan 19, 2021 at 21:13 OWAISAMANIAOWAISAMANIA 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

I would add this as a comment but cant right now. Im not seeing <?php get_search_form(); ?> Also, your code is not complete...you are showing a closing section tag but not the opening one. Also, you are searching page/2, this looks like a menu item. If this exact wording is not in the content area, then Im pretty sure you will not see any results. Go see this for info: https://wordpress/support/article/creating-a-search-page

发布评论

评论列表(0)

  1. 暂无评论