get_next_post() not working with future post status
get_next_post() not working with future post status
get_next_post() not working with future post status
Using previous_post_link next_post_link but with a filter on a custom field
Change URL of previous posts and next posts link in WordPress
Show category in Previous/Next links
Why next_posts(); function does not work inside header.php?
based on the docu: the $in_same_term parameter in https://developer.wordpress.org/reference/functions/next_post_link/ the categories’ parameters in WP_Query https://developer.wordpress.org/reference/classes/wp_query/#category-parameters and how to get a post’s category https://developer.wordpress.org/reference/functions/get_the_category/ and in collaboration with @zackwww; ‘infinitely looping ‘next post’ link at the bottom of a post that only links to posts in that category’ if( get_adjacent_post(true, ”, false, ‘category’) ) { next_post_link($format=”%link”, … Read more
It’s solved now – apparently, the theme developer didn’t put in the call for the above template in the single project template in the latest update… I’m not sure if it’s intentional or just an oversight, but it took a while to find the right template to change. All good now!
In your code this in the condition where you decide when to apply the meta query condition: if($query->is_main_query()) { Therefore if the conditions inside there are working sometimes and not others, it means that condition is true when it’s working and not when it’s not. The solution to this is dependent on all the code … Read more
WordPress Frontend Page using Plugin
did you search around the functions get_adjacent_post() ? A long time ago, I made a Woocommerce plugin (an old outdated Woocommerce product navigation on the repo) that use it in the same case and it used to work. The class I created, use a fallback function to get all ids to exclude. Hope it helps … Read more