Avada theme “next page” not working
-
Hi there,
on my Avada website the TOC links aren’t generated correctly when the page contains nextpage tags (Avada actually provides a “Next Page” component for this).
More specifically, the link URL is missing the page number and thus doesn’t redirect correctly.
Oddly, this only affects my custom user roles. For other user roles, e.g., “admin” or “contributor”, the link generation works fine.
After some debugging I noticed that the
post_content
string is not the same for all user roles. Thepost_content
string for “admin” and “contributor” users contains the<!--nextpage-->
tag. Thepost_content
string for users with custom user roles contains the[fusion_builder_next_page]
tag.As a quick fix I had to change line 264 in the
includes/class.post.php
file:$split = preg_split( '/<!--nextpage-->|\[fusion_builder_next_page\]/msuU', $this->post->post_content );
You might want to add this in a future update or find another solution.
I’m using the following setup:
PHP Version: 7.4.30
WP Version: 6.0.1
Avada Version: 7.8
Easy Table of Contents Version: 2.0.29Kind regards
- The topic ‘Avada theme “next page” not working’ is closed to new replies.