by François Yerg on WordPress.org
Advanced infinite scroll with 8 professional templates, smart caching, context-aware filtering, and complete customization control.

Powerful admin panel – Set the shortcode defaults for an easy use.
Transform your WordPress content display with professional infinite scroll and 8 stunning templates!
FYP Infinite Posts is a powerful WordPress plugin that replaces traditional pagination with smooth, modern infinite scrolling. Featuring intelligent AJAX loading, advanced template layouts, smart caching, and context-aware filtering, it delivers exceptional performance and user engagement for any content-driven website.
Core Features:
Automatically detects and filters content based on:
* Category archive pages
* Tag archive pages
* Custom taxonomy pages
* Author archive pages
* Maintains context across AJAX loads
Granular control over post elements via admin panel or shortcode:
* Featured images/thumbnails
* Categories and taxonomies
* Publication dates
* Author names
* Post excerpts with configurable length (1-200 words)
* Comments count
{post-type}-{template}-item.php naming conventionWorks with all public WordPress post types:
* Standard posts and pages
* WooCommerce products
* Custom post types (portfolios, events, testimonials)
* Any theme or plugin post types
Perfect For:
* Blogs and news websites
* WooCommerce product catalogs
* Portfolio and gallery websites
* Event listings
* Magazine-style content sites
* Any content-driven WordPress website
Part of the FYPlugins ecosystem – professional WordPress solutions with exceptional performance.
Quick Start:
[fyplugins_infinite_posts] shortcodeBasic Examples:
“[fyplugins_infinite_posts]
[fyplugins_infinite_posts pagination="button" posts_per_page="5"]
[fyplugins_infinite_posts post_type="product" category="featured"]
“
Advanced Examples:
“[fyplugins_infinite_posts pagination="scroll" orderby="rand" class="custom-layout"]
[fyplugins_infinite_posts post_type="portfolio" taxonomy="portfolio_category" author="true"]
“
All parameters are optional and default to admin panel settings.
classic, classic-double, scroll, button, or none (default: scroll)post, page, product, or custom (default: post)true (auto-detect), false, or category IDtrue (auto-detect), false, or taxonomy nametrue (auto-detect), false, or author IDdate, title, rand, modified, menu_order (default: date)ASC or DESC (default: DESC)default, grid-2, grid-3, grid-4, slider, masonry, card, listtrue or false (default: true)true or false (default: true)true or false (default: true)true or false (default: true)true or false (default: true)true or false (default: true)Advanced Examples:
“`
// Modern template layouts with design control
[fyplugins_infinite_posts template=”grid-3″ show_excerpt=”false” show_comments=”false”]
[fyplugins_infinite_posts template=”card” excerpt_length=”25″ show_categories=”true”]
[fyplugins_infinite_posts template=”slider” show_thumbnail=”true” show_author=”false”]
[fyplugins_infinite_posts template=”masonry” show_date=”false” class=”portfolio-grid”]
// Different post types with custom styling
[fyplugins_infinite_posts post_type=”product” template=”grid-4″ class=”shop-grid”]
[fyplugins_infinite_posts post_type=”portfolio” template=”masonry” pagination=”button” class=”portfolio-display”]
// Context-aware filtering (automatically detects current page context)
[fyplugins_infinite_posts category=”true” taxonomy=”true” author=”true”]
// Custom filtering and ordering
[fyplugins_infinite_posts category=”5″ orderby=”title” order=”ASC” template=”list”]
[fyplugins_infinite_posts taxonomy=”product_category” posts_per_page=”8″ template=”grid-2″]
// Load more button with custom text and design
[fyplugins_infinite_posts pagination=”button” btn_text=”Show More Articles” end_message=”That’s all folks!” template=”card”]
// Random posts with no pagination
[fyplugins_infinite_posts orderby=”rand” pagination=”none” posts_per_page=”6″ template=”slider”]
// Multiple instances on same page with different templates
[fyplugins_infinite_posts post_type=”news” template=”list” class=”news-section”]
[fyplugins_infinite_posts post_type=”events” template=”card” class=”events-section” pagination=”button”]
““
Context-Aware Intelligence:
When using category="true", taxonomy="true", or author="true", the plugin automatically detects:
– Category archive pages (shows posts from current category)
– Tag archive pages (shows posts with current tag)
– Custom taxonomy pages (shows posts from current taxonomy term)
– Author archive pages (shows posts from current author)
– Regular pages (shows all posts when no context detected)
Supported Post Types:
All public post types including: Posts, Pages, WooCommerce Products, Custom Post Types, Events, Portfolios, Testimonials, and more.
Sorting Options:
– date: Publication date (newest or oldest first)
– title: Alphabetical by post title
– rand: Random order (cache disabled for performance)
– modified: Last modification date
– menu_order: Custom menu order (useful for pages)
Choose from 8 Professional Template Designs
FYP Infinite Posts comes with beautiful, responsive template layouts that work perfectly with any WordPress theme. Each template is optimized for different content types and use cases.
Available Templates:
Template Features:
– Responsive Design: All templates adapt beautifully to mobile, tablet, and desktop screens
– Theme Integration: Templates inherit your theme’s colors, fonts, and styling
– Customizable Elements: Control visibility of thumbnails, dates, authors, excerpts, categories, and comments
– Performance Optimized: Lightweight CSS with conditional loading per template
– Post Type Specific: Each template can be customized for different post types
Template Usage Examples:
“// Use specific templates for different content types
[fyplugins_infinite_posts template="card" post_type="post"] // Blog posts in card layout
[fyplugins_infinite_posts template="grid-3" post_type="product"] // WooCommerce products in 3-column grid
[fyplugins_infinite_posts template="masonry" post_type="portfolio"] // Portfolio items in masonry style
[fyplugins_infinite_posts template="slider" post_type="testimonial"] // Testimonials in carousel format
[fyplugins_infinite_posts template="list" post_type="news"] // News articles in clean list view
"
Design Control Options:
Configure exactly what elements appear in your templates:
– Toggle featured images/thumbnails on or off
– Show or hide post categories and tags
– Control publication dates and author information
– Customize excerpt length (number of words)
– Enable/disable comments count display
– Add custom CSS classes for unique styling
Complete Design Control with Custom Templates
FYP Infinite Posts provides a powerful template system that gives you complete control over how your posts are displayed. Create stunning, unique layouts that perfectly match your website’s design.
Template Override System:
/wp-content/themes/your-theme/fyplugins/infinite-posts//wp-content/plugins/fyp-infinite-posts/includes/templates/{post-type}-{template}-item.php – For specific post type with specific template (e.g., post-grid-3-item.php)default-{template}-item.php – For specific template, any post type (e.g., default-card-item.php){post-type}-default-item.php – For specific post type, default template (e.g., product-default-item.php)Available Template Files to Customize:
– default-default-item.php – Default full-width layout
– default-grid-2-item.php – Two-column grid layout
– default-grid-3-item.php – Three-column grid layout
– default-grid-4-item.php – Four-column grid layout
– default-slider-item.php – Slider/carousel layout
– default-masonry-item.php – Masonry/Pinterest-style layout
– default-card-item.php – Modern card layout
– default-list-item.php – Clean list layout
Enhanced Template Hierarchy (NEW in v1.2.0):
1. Child theme: /wp-content/themes/child-theme/fyplugins/infinite-posts/{post-type}-{template}-item.php
2. Parent theme: /wp-content/themes/parent-theme/fyplugins/infinite-posts/{post-type}-{template}-item.php
3. Child theme: /wp-content/themes/child-theme/fyplugins/infinite-posts/default-{template}-item.php
4. Parent theme: /wp-content/themes/parent-theme/fyplugins/infinite-posts/default-{template}-item.php
5. Child theme: /wp-content/themes/child-theme/fyplugins/infinite-posts/{post-type}-default-item.php
6. Parent theme: /wp-content/themes/parent-theme/fyplugins/infinite-posts/{post-type}-default-item.php
7. Plugin template: /wp-content/plugins/fyp-infinite-posts/includes/templates/{post-type}-{template}-item.php
8. Plugin template: /wp-content/plugins/fyp-infinite-posts/includes/templates/default-{template}-item.php
9. Plugin template: /wp-content/plugins/fyp-infinite-posts/includes/templates/{post-type}-default-item.php
10. Default fallback: /wp-content/plugins/fyp-infinite-posts/includes/templates/default-default-item.php
Template Examples:
Modern Card Layout:
“php
“
Minimal List Layout:
“php
“
Available Template Variables:
All standard WordPress template functions are available in your custom templates, plus new display control variables:
– $show_thumbnail – Boolean to control featured image display
– $show_categories – Boolean to control category display
– $show_date – Boolean to control date display
– $show_author – Boolean to control author display
– $show_excerpt – Boolean to control excerpt display
– $show_comments – Boolean to control comments count display
– $excerpt_length – Integer for excerpt word count
– the_title(), get_the_title()
– the_content(), the_excerpt()
– the_permalink(), get_permalink()
– the_post_thumbnail(), has_post_thumbnail()
– the_author(), get_the_author()
– the_date(), get_the_date()
– the_category(), get_the_category()
– the_tags(), get_the_tags()
– Plus all custom fields and metadata
Planned features for upcoming versions:
Have feature ideas? Visit the WordPress support forum or francoisyerg.net.