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

GoBlog Free Pagination Issue

programmeradmin0浏览0评论

First time poster, my name is Johnny. :)

I've built an archive page for my website that I'm very proud of (using Elementor), but I don't want the homepage of this theme to paginate. I want the homepage to display the 6 most recent posts and that if readers would like to find more that they have to click on the archive page at the top.

Full disclosure: I'm a complete n00b at programming of any kind. I've done some VERY basic python before, but that's about it.

I've found the code to do with pagination and it looks like this:

?>
<div class="grids grids1">
    <div class="name-post">
        <h2 class="title-home"><?php echo __('Recent Uitvergroot', 'goblog-free'); ?></h2>
    </div>
    <?php if ( have_posts() ): ?>
        <?php while( have_posts() ): the_post(); ?>
        <div class="box-content">
            <div class="content">
                <div class="categoris">
                    <?php goblog_free_the_category(); ?>
                </div>
                <?php goblog_free_title_post(); ?>
                <div class="box-content-info">
                    <?php goblog_free_content_info(); ?>
                </div>
                <p><?php echo goblog_free_get_excerpt(); ?></p>
            </div>
            <div class="content-gambar">
                <?php goblog_free_thumbnail_post(); ?>
            </div>
        </div>
    <?php    
        endwhile;
        goblog_free_pagination_default();
        else: get_template_part( 'template-parts/none/no', 'post' ); 
    endif; ?>
</div>

What do I edit to make sure that my theme stops paginating without breaking the homepage? URL to the homepage:

Thank you very much for your time!

Kind regards,

Johnny

First time poster, my name is Johnny. :)

I've built an archive page for my website that I'm very proud of (using Elementor), but I don't want the homepage of this theme to paginate. I want the homepage to display the 6 most recent posts and that if readers would like to find more that they have to click on the archive page at the top.

Full disclosure: I'm a complete n00b at programming of any kind. I've done some VERY basic python before, but that's about it.

I've found the code to do with pagination and it looks like this:

?>
<div class="grids grids1">
    <div class="name-post">
        <h2 class="title-home"><?php echo __('Recent Uitvergroot', 'goblog-free'); ?></h2>
    </div>
    <?php if ( have_posts() ): ?>
        <?php while( have_posts() ): the_post(); ?>
        <div class="box-content">
            <div class="content">
                <div class="categoris">
                    <?php goblog_free_the_category(); ?>
                </div>
                <?php goblog_free_title_post(); ?>
                <div class="box-content-info">
                    <?php goblog_free_content_info(); ?>
                </div>
                <p><?php echo goblog_free_get_excerpt(); ?></p>
            </div>
            <div class="content-gambar">
                <?php goblog_free_thumbnail_post(); ?>
            </div>
        </div>
    <?php    
        endwhile;
        goblog_free_pagination_default();
        else: get_template_part( 'template-parts/none/no', 'post' ); 
    endif; ?>
</div>

What do I edit to make sure that my theme stops paginating without breaking the homepage? URL to the homepage: https://www.RationeleStem.nl

Thank you very much for your time!

Kind regards,

Johnny

Share Improve this question asked Jan 3, 2021 at 21:50 ThalasaurThalasaur 32 bronze badges 1
  • Are you using a third party theme? – Tony Djukic Commented Jan 3, 2021 at 22:24
Add a comment  | 

1 Answer 1

Reset to default 0

It looks like you could just comment out the pagination function - but we can't see what that actually does, so this is a guess:

// goblog_free_pagination_default();

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论