Strange problem with pagination (nextpage)
-
I’ve tried everything I can think of to track this problem down, but am truly stuck. I’m using the <!–nextpage–> tag in pages and posts. Somewhere along the way the first page began to always be formatted as an a-link, even if I’m on that page. I can’t get it to change.
I tried de-activating all my plugins, one by one. I also tried setting up a new wordpress site on a temporary subdomain with the same template and same stylesheet (which worked properly). I then added all the plugins I use on the problem site. It still works fine on the temporary site, but not on the actual one.
You can view the problem here: https://www.practicaprophetica.com/articles/carnal-warfare-not-in-gods-plan
And here is the temporary site, with the same article (it’s on the front page): https://test.practicatechnical.com/
Same template (although there are a few modifications on the actual site), same stylesheet, same plugins. What could it be?
I’m guessing the problem is happening in the wp_link_pages() call, that it is somehow not recognizing the first page as the home page for that article. It’s not just this one article, but any page or post that uses nextpage…all have the same problem.
Can anyone suggest where I should look to solve this, or what could be causing it? I’ve programmed before, although I don’t know PHP much. But with a few tips, I can work my way through the code. I just need some suggestions because I’ve run out of ideas.
- The topic ‘Strange problem with pagination (nextpage)’ is closed to new replies.