next_post_link not working since update to 4.2.2
-
This code worked perfectly before I updated to 4.2.2:
<?php echo next_post_link('%link', '? Previous '.$animal,true); ?> <a href="<?php echo get_permalink(40); ?>">Adopt Home</a> <?php echo previous_post_link('%link', 'Next '.$animal.' ?',true); ?>
It will work now but only when ‘true’ is deleted. Otherwise nothing is returned. It is required that the next and previous links must be from the same category so ‘true’ needs to work.
Getting a little desperate here after trying to fix over the past week.
Thanks for any help!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘next_post_link not working since update to 4.2.2’ is closed to new replies.