Setting up the plugin
Clone this wiki locally
Installing "Auto Load Next Post" can be done either by searching for "Auto Load Next Post" via the "Plugins > Add New" screen in your WordPress dashboard, or by using the following steps:
- Download the plugin via WordPress.org.
- Upload the ZIP file through the 'Plugins > Add New > Upload' screen in your WordPress dashboard.
- Activate the plugin through the 'Plugins' menu in WordPress.
Once activated, you may be prompted to declare support for the plugin within your theme functions.php file. See how to support your theme.
After that has been done check the status of your site when viewing a single post. If you see another post loading at the end of the initial post then your theme has a post navigation on a single post which is required in order to identify the next post to load. This is good news and the first step in making sure the plugin works.
If you do have a post navigation but nothing is happening, that is when you need to match the selectors in the plugin settings with your theme selectors.
To do this, go to the plugin settings page under 'Settings > Auto Load Next Post'. There you will see the selectors that are required in order to read your theme. Enter each of the containers specified to your theme and press "Save Changes".
If after doing all that and you only see the post navigation repeated over and over again then you will need to create your own template file to load the content according to the theme structure.
This means that the theme was most likely not using WordPress theme code standards and requires customizing to pull in the content for that theme. See how to customize your own template.
This completes the setup of the plugin. Now your site should be loading post after post as you scroll down.
If the theme you are using is written well and follows WordPress Standards then you will most likely not need to change the default settings but I would check none the less.
Each variable is selected either by an ID or class.
- An ID would be a hash '#' followed by the name of the variable.
- A Class would be a dot '.' followed by the name of the variable.
Content Container - This is the main content wrapper, not the whole site wrapper or the sidebar wrapper. Just the content wrapper. The container to which the main content goes in.
- Default Setting: .site-main
Post Title Selector - This is the title of the post.
- Default Setting: h1.entry-title
Post Navigation Container - This is the post navigation for previous and next posts.
- Default Setting: nav.post-navigation
Comments Container - This is the comment box container.
- Default Setting: div#comments
Remove Comments - If enabled, comments at the end of the post are not loaded.
- Default Setting: Checked
Update Google Analytics - This enables you to track the posts that are loaded as the user scrolls down the page.
- Default Setting: Unchecked
Remove all data on uninstall? -- If enabled will delete all of this plugin settings.
- Default Setting: Unchecked