I believe what you need is is_page()
.
if (is_paged()) {
// page 2 or later of an archive
} else {
// only the first page of an archive
}
With your code, I think but am not 100% sure, that you want:
if( !is_paged() && ( is_home() || is_front_page() ) ) :
get_template_part( 'hero' );
else :
get_template_part( 'blank' );
endif;
Related Posts:
- How to show a single post on the front page but have normal paging?
- Show content only on front page?
- Home page not obeying post per page setting on the first page only
- remove paginations functions only on home
- Template hierarchy about pagination after front-page.php
- Homepage has Paged Pages that should not exist, like /page/2/ and on to /page/99999/
- Problem with older entries in homepage
- page 1 is not paged
- Disable and redirect pagination of Home
- WordPress static home page pagination not working
- Disable pagination on frontpage
- Stop pagination when static homepage is set
- Changing pagination list class
- Pagination resolving to first page only
- Aggregate comments, with pagination
- Pagination of RSS2 feed
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- How to ignore or disable nextpage tag?
- Pagination Not working on Home Page with 2 Query
- Category pagination shows same posts
- category/category_name pagination 404 error
- get_query_var(‘paged’) giving same result
- Getting 404 on taxonomy page
- Why am I getting a 404 on anything past page 1 of my query?
- Getting pagination for second loop to work on single.php
- 5 posts per page from single category, paginated
- WordPress custom URLs for pagination pages
- How to add pagination to a single post
- Change Site Title and Description html tags if not home page
- WordPress rewrite rules for pagination on search page
- Styling the_posts_pagination With Font Awesome
- List all posts by year with pagination
- Pagination on 2nd loop
- How can I show a multipage post as a single, wrapped post?
- Why does pagination go to a blank page when navigating through home.php?
- Pagination with $_POST and $_SESSION
- wordpress is converting ?page=2 into /2
- Pass additional parameter in the URL
- Add pagination to my custom loop [duplicate]
- Pagination stopped working after assigning custom page template to new page (different slug)
- Pagination with WordPress default gallery?
- How do i improve my custom pagination?
- Post Pagination Customization (wp_link_pages) Editing Navigation
- Default pagination is broken when use ‘static page’ as ‘front page’
- Paginate results from data fetched through array
- make a pagination that show posts by date
- Adding pagination on template page wordpress
- Pagination on custom post type not working if permalinks set to rewrite url
- Theme Option not Working Inside a Function
- search with pagination not working as expected
- Pagination Not Working on `WP_Query` Archive Page
- Cannot go back to the first paginated page using pagination links
- How to use custom previous/next link ?
- Remember form field values with page navigation
- How do you choose to display specific posts/pages by parent url
- Custom category.php paging shows the same posts
- Pagination Links showing incorrect previous page number
- Automatically adding a link to the next page link before ” tag in posts?
- Hide content after going to page 2 of archive, show content when back at first page
- Add pagination to this following template
- split wordpress loop into columns of categories and associated posts
- How to Show Next-Previous Link Only
- How Change URL in Pagination pagebreak no plugins wordpress?
- How is the Page Splitting implemented in the theme?
- Why the page number does not appear in splitting post?
- Use of rewind_posts() cause pagination to break
- Pagination not working in custom post type but perfectly in posts
- Paginate Images To Similate Map Drill-Down
- Custom pagination with URL parameters
- how to add pagination to a popular post custom page?
- Add pagination – syntax error when copy/pasting
- Remove “Page” from Category archive
- Problem with Paging 404
- Pagination not working past page 3 on archive page of category
- Using the_posts_pagination with offset adds extra empty page
- get_next_posts_page_link adds Inexistent directories
- Search, pagination, the last pages leads to 404 page
- Pagination is not working in custom page template
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Pagination – linking back to base page – Page 1
- 404 Pagination issue for only one category
- Search pagination link redirecting to a link that doesn’t work with pagination
- Plugin to show pagemap beneath certain page and next/previous page beneath certain page?
- Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?
- URL rewrite function and pagination with year in the url
- How do I make pagination_links show as 01 02 03, instead of 1 2 3?
- wordpress pagination problem with page templates
- Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]
- pagination custom post type on CP page
- Paginate template name
- pagination does not work with query_posts. Help! [duplicate]
- Home page loop with pagination problem
- How to reduce the number of pages in pagination
- foreach pagination
- Always show Next and Previous button in wp_link_pages ?
- paged query leads to 404? [duplicate]
- Pagination only working on index page not on a template page
- Is ‘pm’ used by core?