Skip to content
Permalink
Browse files

Updated possible-issues.md

  • Loading branch information
seb86 committed Apr 4, 2019
1 parent a949a75 commit 689ae856e01662c593eaaea1ebff9ebd10efcc8d
Showing with 17 additions and 4 deletions.
  1. +17 −4 en_US/possible-issues.md
@@ -4,28 +4,41 @@

If you are facing an issue with Auto Load Next Post then this guide may help you understand why and how it can be fixed.

Here are just a few that is most likley because of a permalink issue. Either Auto Load Next Post did not register the custom endpoint it requires or your permalink structure is not friendly.

### Loads the whole page and not just the content

This is most likley because of a permalink issue. Either Auto Load Next Post did not register the custom endpoint it requires or your permalink structure is not friendly.
This problem is caused due to the permalink structure that you have. Here are a few permalink structures that **do not work** for Auto Load Next Post:

One example of a permalink structure that can cause a problem is having the author before the post slug. `/%author%/%postname%/`
* Have the author before the post slug: `/%author%/%postname%/`
* Have the post category before the post slug: `/%category%/%postname%/`

This causes the custom endpoint to redirect to the original post permalink while Ajax is loading the content so in the end you are importing the whole page and not the content from the custom repeater template that is suppose to load via the custom endpoint which Ajax requests.
These structures cause the custom endpoint for Auto Load Next Post to redirect to the original permalink for the post while Ajax is loading the content. So in the end you are importing the whole page and not the content from the custom repeater template that is suppose to load via Ajax requests.

It's important that you have a clean friendly permalink structure so Auto Load Next Post can work it's magic.

The default permalink structures work best with Auto Load Next Post.

* Day and name: `/%year%/%monthnum%/%day%/%postname%/`
* Month and name: `/%year%/%monthnum%/%postname%/`
* Post name: `/%postname%/` (Recommend)

### Getting an error 404 when Ajax makes a request

Most likley this is caused because you previously had an older version and have now updated to the latest version. This is easly fixed. [See the upgrade guide for more](https://github.com/autoloadnextpost/alnp-documentation/blob/master/en_US/upgrading.md#404-on-ajax-request).

### Auto Load Next Post endpoint did not register

Simply go to the permalink settings page in your WordPress dashboard and press the save button to refresh. That will flush all the rewrite endpoints and register Auto Load Next Post endpoint.

### Not loading when using a Cache or Minification plugin?

If this is happening then you need to exclude **Auto Load Next Post** from being cache, JS combined or minified with the Cache or Minification plugin you are using on your WordPress website.

If you are able to do so then you need to exclude the following files:

1. `wp-content/plugins/auto-load-next-post/assets/js/frontend/auto-load-next-post.min.js`
2. `wp-content/plugins/auto-load-next-post/assets/js/libs/select2.min.js`
2. `wp-content/plugins/auto-load-next-post/assets/js/libs/scrollspy.min.js`
3. `wp-content/plugins/auto-load-next-post/assets/js/libs/jquery.history.js`

---

0 comments on commit 689ae85

Please sign in to comment.
You can’t perform that action at this time.