Support » Fixing WordPress » Pagination Issues (duplicated and not appearing on page)

  • Resolved Juicy Zone

    (@juicy-zone)


    I have built my Blog from scratch using bootstrap, today I noticed that my pagination gets repeated under every poston my home page and if I click any link category, the pagination doesn’t show up in the page category. I’m trying to understand the WP Query but can’t seem to make sense of it.

    And I’m not sure if my loop is correctly close or if something is missing…I haven’t put any new code, all I did was to modify the Settings > Reading > Blog pages show at most : 2

    Index code:

    <?php
    
    get_header();
    
    if (have_posts()):
        while (have_posts()) : the_post(); 
    
            get_template_part('content');
    
        endwhile;
        else:
            echo '<p>No Content found</p>';
            endif; ?>
    <?php get_sidebar();

    SOMEONE HELP ME!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you still having this problem? Looking at your blog now, I’m not able to notice the issue.

    If you’re willing, please share the fix in case someone is having a similar issue.

    Thread Starter Juicy Zone

    (@juicy-zone)

    Hi! Thank you for replying and yes I solved it! I had to close the ?> tag in each page. (category, content, index, etc.) after endif;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination Issues (duplicated and not appearing on page)’ is closed to new replies.