Again thanks for a great plugin! I am just having an issue using ‘in_cats’. I have a post structure like so:
Parent 1 –
Post – News
Post – Worldview
I would like to navigate through all the posts that belong to a posts’ parent category. So for the News post, I would like to cycle through the posts in category Parent 1.
I have the following code that retrieves the parent categories id:
<?php $cats = get_the_category(); ?> <?php $rents = $cats->category_parent; ?> <?php echo $rents;?>
-> returns 58 in this instance, which is correct.
<?php previous_post_link_plus( array('in_cats' => $rents ) ); ?> | <?php next_post_link_plus( array('in_cats' => $rents ) ); ?>
However, nothing is rendered using this code, am I missing anything?
Thanks in advance
- The topic ‘'in_cats' not rendering any links’ is closed to new replies.