Consider using the is_home()
conditional tag to check whether or not the home page is being displayed or not.
<?php
if ( is_home() ) {
// This is a homepage
// Do your fancy loop here with extra bells and whistles
} else {
// This is not a homepage (i.e. paginated page)
// Do a stripped down version of your loop above with no bells and whistles
}
?>
Reference to is_home on the WordPress Codex
Related Posts:
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- Next & Previous (Pagination in this case) Not Appearing
- Pagination stopped working after assigning custom page template to new page (different slug)
- Adding pagination on template page wordpress
- How do I make my pagination work?
- Show content based on page number
- Remember form field values with page navigation
- Customizing Latest Post Pagination
- Page navi for template page
- Pagination is not working in custom page template
- get_posts custom paging
- Only show pagination when post count exceeds show post
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- Separate page for pagination possible?
- WordPress /page/2 404 pagination problem – what to do?
- how to get pagination link url?
- How to edit contents of dynamic_sidebar()?
- Check if a menu is empty?
- How to paginate a list of tags
- How do I sort multiples pages?
- WordPress pagination on custom script
- Broken pagination
- How to use pre_get_posts?
- Possible to paginate on single.php?
- I want to change the media list with additionally query
- Content only on last page, if the page has pagination
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Display only the current page number and another numbered page in pagination
- How can I paginate image attachments in a post?
- Pagination shows same contents all pages
- How to create a wordpress template without using any page
- Custom page for WooCommerce’s /product-category/
- How to test pagination? [closed]
- Link to previous month’s posts
- How to get “last year from [spec year] that has posts”?
- WordPress loading index page instead of archive.php
- Templates have disappeared from drop down lists
- How can I paginate a list of related posts?
- tag.php pagination and query_posts()
- Getting pages filtered by template assigned
- Add icons in paginate_links()
- How can I use var php with javascript to build custom page? [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- WordPress single page template, custom post type, pagination orderby title – alphabetical order
- Single Page Views and Pagination View Depending on URL Query
- Category lists page foreach Paging
- Issue on single.php pagination WordPress
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- Using Ajax in the prev_posts_link and next_posts_link
- Adding range to wp_link_pages()
- WordPress triggers 404 on page 2 for custom search query
- Search page pagination does not work
- Pagination 404s on custom query
- Customise wp_List_pages to output a UL LI
- posts not showing on index.php
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Page template option missing
- Pagination in home page for a custom loop loads same content
- Pagination not working with custom post type
- Displaying the author of next and previous posts in pagination?
- How to ignore pagebreaks for RSS feed?
- Pagination For Table Rows on a page?
- Force WordPress to NOT display the manual excerpt
- Universal CPT archive template and half working pagination
- Templates dropdown not appearing using _s theme (underscores)
- remove $_GET-parameter from WP_List_Table::tablenav
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Pagination for previous page/next page (with more than one post/page)
- Organize template parts and page templates in folders in regards of template hierarchy
- Pagination for custom post types
- Pagination in author, category, archive and tags pages does not work
- WordPress pagination with wp_query_columns
- How can I paginate results from get_children
- Prevent header and footer from loading on specific pages with template or plugin
- Why can i add /page/674874 (or any number) to a URL and it still pulls up that page?
- Custom WooCommerce template for product
- Why does a custom php code inside a custom template not get executed?
- Override the WordPress default pagination markup
- Pagination with Metaboxes or Custom Fields
- WordPress form submit to custom page template does not work
- 2 Columns with Independent Pagination
- Prevent WordPress to remove query vars from url
- Displaying Child Page’s Information
- Creating custom post-listing templates in twentyseventeen child theme
- Google Indexed sub pages in wordpress pagination in post
- Paginate Links function: Page 1 doesn’t work
- Create a variable with string, array or multiple values
- How to display most viewed posts without any plugins
- Submit form to another template (ugly url)
- Search engine not working
- Page Templates Used in Custom Post Type
- pagination for blog landing page
- Pagination is not working correctly there is this wierd looping
- margins in between pagination links [closed]
- Page navigation not working correctly on index but only on categories
- How to split long posts in multiple pages in twentysixteen
- Stop pagination when static homepage is set
- What is the point of using the front-page.php template? [closed]
- Is ‘pm’ used by core?
- How to provide page_template path in custom plugin using WordPress