get_next_post() not working after updating to WordPress 5.5
-
Hi there,
I just updated my WordPress to version 5.5, and for whatever reason the get_next_post () function has stopped working and it does return no object. However, this behavior only happens in the new posts that I publish or republish. The old posts works fine.However, get_previous_post () does return an object, and it can generate a link in absolutely all posts on the blog.
I have activated SAVEQUERIES to true in WP_config.php to be able to see the queries that are generated when the page is loaded, and I have painted one by one in phpMyadmin, but I have not been able to see that any of them have relation with pagination, but with plugins like Yoast Seo, or the related_post() just to mention some of them.
So, I’m completely lost, and I do not know where to start to look for to fix the issue.
BTW, I don’t use any rare or custom taxonomy, at least that I know of.
Any idea where I can start looking for or how to solve it?
Anyone else with the same problem as me?Thanks in advance!
Note: I do not publish an url to check, because I do not think has nothing to do with my problem. I hope it’s not a problem.
- The topic ‘get_next_post() not working after updating to WordPress 5.5’ is closed to new replies.