Next Page

Developer documentation for the Ajax Load More Next Page add-on.


Filter Hooks

The following filter hooks are available when using this add-on:

alm_nextpage_break_{id}

The alm_nextpage_break filter will automatically split content into pages without the need for the <!–-nextpage–-> quicktag.

The following code snippet will dynamically page the content of each post wherever an <h2/> element is found – view example.

alm_nextpage_leading_slash

Add a leading slash / before the page number in the URL.

Note: This is useful when permalink URLs do not have trailing slashes.

alm_nextpage_remove_trailing_slash

Removes the trailing slash / from the end of the URL.

alm_nextpage_before

Used to render content before a page is displayed. In this example, a Google Adsense advertisement will be displayed at the opening of each page load.

alm_nextpage_after

Used to render content after a page is displayed. In this example, text copy will be displayed after each page.


« Back to Add-ons