You can use this
get_query_var('paged')
to check to see if you are viewing the home page, page 1, page 2 and so on. so you could put this around the first block so it doesn’t show after the first page (which I think is what you want):
if ( isset( get_query_var('paged') ) === false )
{
//do page 1 stuff here.
}
get_query_var() is just returning whether the “paged=?” bit appears in your URL, so it will return nothing for the home page. I’m not sure whether it returns null or “” for the home page, you’ll have to check.
Related Posts:
- Pagination for two loops
- Displaying posts limit: can’t get pagination to display [duplicate]
- Custom Page Template and Category Exclusion
- Limitless amount of posts in custom archive page
- How to fix pagination for custom loops?
- Pagination not working on home page
- Loop.php vs looping inside template file
- WordPress category & taxonomy loop with pagination
- Two custom loops, pagination, offset
- Show newly added posts since last user login time /date
- Broken pagination
- Search results with custom loop don’t update when paged
- Pagination Not working on Home Page with 2 Query
- Previous and Next Post link doesn’t work
- Custom Loop Pagination on WordPress
- Pagination adding extra posts only on page 2
- How do I override part of the main loop in my child theme?
- multiple loops with pagination on the same page
- Enable infinite scroll on single.php [closed]
- Adding Pagination on a Custom Author Page
- How to paginate this custom loop? [duplicate]
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Pagination gives extra page with no results
- Get Pagination (WP-PageNavi) not to work
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Complex query and posts pagination
- Why only one post (and no pagination) on this variation of the loop?
- Recent posts on a static home page
- Pagination Issues using WP_Paginate Plugin
- Calling & display certain product category loop and pagination on the homepage
- Make blog page show 10 on first page, 9 on every other page
- Pagination for multiple loops
- How to fix pagination for custom loops?
- show random image in loop if image is not set
- How can I paginate this?
- Genesis multiple category custom loop 404s after first page
- How to fix pagination for custom loops?
- Pagination – works on local but not live dev!
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Split wordpress loop to multiple layouts
- How do I automate multiple category loops?
- Pagination on Single Post
- How to get my loop to paginate?
- Distribute Gallery Images Every nth in Loop
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- How to append a query string to pagination?
- How do I get my loop.php to properly paginate?
- First archive page with a few posts
- Pagination broken after using 2 loops to show content
- Pagination on custom post type on front-page.php
- I have broke my pagination, same posts on all pages (index.php)
- get_delete_post_link() inside Loop stubbornly returns nothing
- Frontpage pagination by week
- Integrating WordPress with Your Website
- How can this multiple loop have pagination as described?
- Display more than 10 posts on author.php file
- pagination broken – clicking next displays “page not found”
- static page with multiple loops breaks post pagination
- Skip 5 latest post while paging?
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- Custom query pagination with php parameter as arg problem
- How to insert content before pagination in loop?
- Pagination on a underscore custom theme
- WordPress multiple loops with default pagination
- How to fix pagination for custom loops?
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Custom loop not working in singular.php, working in other pages
- Alternative layout the loop
- How do I aproach this?(for sale, for lease, sold->move something from a category to another)
- How to fix pagination for custom loops?
- Display single post inside accordion based on form submission results
- Adding pagination to WP_Query [duplicate]
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- Pagination on Custom Loop
- trying to write a variable into a wp_query, need help!
- Why is my pagination showing up?
- display only parent replies count in index.php
- Change the way wordpress outputs images or image galleries
- Paged homepage – requirements?
- Home page loop with pagination problem
- Pagination problem with multiple loops on the same page
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- WooCommerce custom loop pagination on front page
- How wp maps urls into files
- posts_nav_link() not working on index.php
- repeating posts on 2nd page to posts
- Same posts within a paginated page
- Multiple loop with pagination in same page
- Insert multiple custom components after x-number of posts
- Display all authors and their only one latest post
- Conditional statement to show pagination
- Template structure
- How to get the excerpt for is_home() outside of the loop isn’t working
- List ALL posts by author on author archive
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- next_posts_link() always generates second page link on custom post type
- WordPress Group By Problem