Support » Plugins and Hacks » [Resolved] 'in_cats' not rendering any links

[Resolved] 'in_cats' not rendering any links

  • Hi ambrosite,

    Again thanks for a great plugin! I am just having an issue using ‘in_cats’. I have a post structure like so:

    Parent 1 –
    Sub-category 1-
    Post – News

    Parent 2-
    Sub-category 1-
    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[0]->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


Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] 'in_cats' not rendering any links’ is closed to new replies.