Post Navigation

The post navigation is an important part in order for Auto Load Next Post to work. Most themes should have one on a single post preferrably at the end of the article.

If the theme does not have a post navigation on a single post at the end of the article then you will need to add a post navigation to the single post. Follow the Next and Previous Links guide and your theme will be one step closer to being ready for Auto Load Next Post.

If your theme does have a post navigation and you have everything setup but Auto Load Next Post is still unable to load a post then it may be because the post navigation is missing an attribute assigned to the previous post link.

One way to apply the missing attribute is via JavaScript. See code snippet.

I’m seeing two post navigations.

This can depend on theme your using but if you are developing a theme yourself then it would be because of where you placed the post navigation for a single post. Auto Load Next Post also places a compatible post navigation for you and would look just like a link.

To remove it, all you have to do is use the remove action hook below.

Only one post loads after the initial post, why?

This is because your post navigation selector does not match. You may have set the post navigation selector for your theme correctly but the template is not loading the themes post navigation but instead, the compatible post navigation is loading.

You will need to make the post navigation match from your theme so Auto Load Next Post recognizes it.

First, you will need to remove the compatible post navigation as shown below and then hook in your themes post navigation in place.

Remove Compatible Post Navigation

remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );