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 of the post into pages without requiring the Page Break block or <!–-nextpage–-> quicktag inserted into the content.

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

alm_nextpage_paged

Do not load previous pages when a user enters via deep linked paged URL.

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.


Frequently Asked Questions

Below are common questions regarding the Next Page add-on. If you have a question and don’t see an answer here, please visit the support page and submit your request.

Do I need a repeater template with the Next Page add-on?

No, the Next Page add-on uses the_content() for display – repeater templates are not used with this add-on.

My theme has wp_link_pages() support built in, how can I hide the navigation when using Next Page?

Ajax Load More will not hide the paging navigation generated by wp_link_pages(), it will be up to you to modify your template to remove the function or use CSS to hide it.

Can I use the Gutenberg Editor and the this add-on?

Yes, the Gutenberg Editor is fully supported by the Next Page add-on. In Gutenberg you will use the Page Break block to split your content into multiple page.


« Back to Add-ons