F.A.Q.

How do I enable theme support for the plugin?

Simple add this to your functions.php file.

add_theme_support('auto-load-next-post');

Then setup the selectors for your theme in the settings page.

Where’s the settings screen?

Settings > Auto Load Next Post.

Is overriding the template file required?

No. This was put in place to support themes that have coded their template files differently from WordPress theme standards.

How can I override the default template file?

Simply create a new folder in your theme like so: your-theme/auto-load-next-post/ and copy the template file content-partial.php into that new folder. Modify it to match how your theme’s content is loaded. Once complete it will load that template file instead.

Is it compatible with the JetPack’s related posts module?

It has been brought to my attention that this is no longer the case with the recent updates made in JetPack. I am looking into a new solution so look out for it on the feature roadmap.

You mentioned action hooks to load content before and after the next post has loaded. What are they?

The action hooks are documented on the GitHub repository along with an example on how to use them. I have also prepared a plugin that shows you an example of added content using the hooks.

After the first post has loaded, all I get is the same post over and over again. Why is that?

Some themes may or may not need the template content-partial.php file created in your theme. If you have not done so then you will have to create your own to support the theme structure. If you have already done that then you may have placed the post navigation outside of the post query. You need to place it inside the loop. If that is not the case then you have not included the content of the post correctly according to the theme.

Does the plugin detect my theme and insert the correct selectors for me?

No it does not, but this is something I am working on for the premium version. However this will only work with themes that have been tested and approved. It will not have the ability to scan code and identify the elements for you. This is mainly because not all themes use the same selectors.

My theme does not work with the plugin, what do I do?

First check that you have a post navigation at the end of your post. If one does exists then you may need to copy and modify the template file content-partial.php in order to support your theme. Not all themes are coded the same way so some alterations will be needed. If you need help with this then I provide direct support on request.

I’m confused about the post order. Why is the plugin called Auto Load Next Post?

Well, WordPress loads posts in descending order by default so the next post is the previous post and a user reads content going down not up so it loads the next post, not previous.

How can I get the Google Analytics option to work?

You first need to have Google Analytics installed on your site. Either by inserting the analytics into your theme yourself or by using the Google Analytics by MonsterInsights plugin.

Does Auto Load Next Post support WordPress Network / Multisite websites?

It does. Just make sure that you activate the plugin on the site you want it used on and then make sure the selectors match the theme the site is using.