=== Infinite Scroll Reloaded === Contributors: wpdebugfix Tags: infinite scroll, ajax, load more, posts, widget Requires at least: 5.0 Tested up to: 6.8.1 Stable tag: 2.0 License: GPLv2 or later == Description == A lightweight plugin to add infinite scroll and load more functionality using a shortcode or widget. Display posts from any post type with flexible settings. == Installation == 1. Upload the `infinite-scroll-reloaded` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Use the shortcode `[infscroll]` with desired parameters, or add the Infinite Scroll Reloaded widget from the Widgets menu. == Usage == **Shortcode Example:** `[infscroll post_type="post" scroll_type="loadmore" view="list"]` **Parameters:** - **post_type** – (string) The post type to display. Default: "post". Example: `post_type="product"` to show WooCommerce products. - **posts_per_page** – (int) Number of posts to load initially and per scroll. Default: 5. Example: `posts_per_page="10"` - **scroll_type** – (string) The scroll behavior. Options: - `"loadmore"` – Adds a Load More button - `"infinite"` – Loads automatically as the user scrolls Default: `"loadmore"` - **view** – (string) Display layout. Currently supports: - `"list"` – Posts appear in a vertical list Default: `"list"` **Example:** Load custom post type with 10 items per scroll: `[infscroll post_type="event" posts_per_page="10" scroll_type="infinite"]` == Frequently Asked Questions == = Can I use it with custom post types? = Yes! Just set the `post_type` attribute in the shortcode to match your custom post type slug. = Does it work with any theme? = Yes, but styling may vary depending on your theme's CSS. You can add custom styles if needed. = Can I override the plugin templates in my theme? = Yes, Infinite Scroll Reloaded supports template overrides. To customize how posts are displayed, you can override the following template files by copying them into your active theme: **1. Loop Template:** Copy this file from the plugin: `wp-content/plugins/infinite-scroll-reloaded/templates/loop-template.php` Place it in your theme like this: `wp-content/themes/your-theme/isr/loop-template.php` This controls the markup for each post item in the list or grid. **2. Container Template:** Copy from: `wp-content/plugins/infinite-scroll-reloaded/templates/container.php` Place into your theme: `wp-content/themes/your-theme/isr/container.php` This controls the overall container, including the Load More button or infinite scroll loader. Once copied, you can safely modify these files. The plugin will automatically use your theme's version instead of the default one. == Changelog == = 2.0 = Initial release with shortcode and widget support.