Infinite scroll extended to single post pages
Author: | TomHarrigan (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 4.1 |
Plugin version: | 1.2 |
Added to WordPress repository: | 10-10-2014 |
Last updated: | 20-12-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 56 |
Rated by: | 6 |
Plugin URI: | https://github.com/tomharrigan/transporter |
Total downloads: | 4 587 |
Active installs: | 80+ |
Click to start download
|
In addition to normal infinite scroll behavior, this plugin adds infinite scroll to the single post page. When reading a single post, once the reader reaches the bottom of the page, the next post loads in. This is similar to functionality on big news sites such as Time.com, LA Times, Quartz, Vogue.com
The default WordPress TwentySomething themes, Genesis themes and Canvas themes are already compatable with this plugin and ready to go!
Relies on add_theme_support. If your theme is not in the above list, add the folliwing to your themes functions.php file: add_theme_support( 'infinite-transporter' );
See installation and FAQ sections for more on getting set up.
FAQ
What are all of the available settings?
The following is all of the available parameters that can be set along with their default values:
add_theme_support( 'infinite-transporter', array(
'type' => 'scroll', // scroll | click
'requested_type' => 'scroll', // store the original type for use when logic overrides it
'footer_widgets' => false, // true | false | sidebar_id | array of sidebar_ids -- last two are checked with is_active_sidebar
'container' => 'content', // container html id
'wrapper' => true, // true | false | html class
'render' => false, // optional function, otherwise the 'content' template part will be used
'footer' => true, // boolean to enable or disable the infinite footer | string to provide an html id to derive footer width from
'google_analytics'=> false, // boolean if using google analytics, set to true
'post_order' => false, // boolean. false to display newest post after initial post. True to display next reverse chronological post after current post.
'footer_callback' => false, // function to be called to render the IS footer, in place of the default
'posts_per_page' => false, // int | false to set based on IS type
'click_handle' => true, // boolean to enable or disable rendering the click handler div. If type is click and this is false, page must include its own trigger with the HTML ID 'infinite-handle'.
) );
ChangeLog
1.2
- Allow support for themes that aren’t well written and don’t have an ID defined for the content area, but use a class name instead.
- Add ‘infinite_transporter_post_order’ filter to allow for changing the post order behavior depending on user defined criteria (ex. different categories of posts, or post types, etc.)
1.1
- Add Google Analytics integration support
- Add support for Genesis themes
- Add support for Canvas themes
- Add support for Twenty Fifteen theme
- Add ‘post_order’ parameter to allow loading of posts in sequential reverse-chron order (true), or by starting from latest post after scrolling through initial post (default, false).
- Add ‘single_infinite_transporter_query_args’ filter
- Fix bug with second post not updating URL
- Fix bug with page parameter being appended in single post page
1.0