WordPress.org

Ready to get started?Download WordPress

Forums

nrelate Related Content
How do I hide nRelate on subcategory? (5 posts)

  1. nwonderland
    Member
    Posted 3 years ago #

    Is there a way to hide nRelate on a subcategory's single posts?

  2. nwonderland
    Member
    Posted 3 years ago #

    To be clear, I have a category template set up for this subcategory. Is there a template tag I can use?

  3. Steve Bruner
    Member
    Plugin Author

    Posted 3 years ago #

    You can use this template tag:
    <?php if (function_exists('nrelate_related')) nrelate_related(); ?>

    For instructions are here:
    http://wordpress.org/extend/plugins/nrelate-related-content/installation/

  4. nwonderland
    Member
    Posted 3 years ago #

    @sbruner,

    Thanks for the reply. I've added the template tag to my singles template and unchecked "Single Posts" under layout settings. nRelate now does not show up on any single posts. I tried re-indexing, but two hours later, it still does not show up.

    If I DO check "Single Posts," it shows up on all single posts.

    I'm using nRelate 0.47.1 by the way.

    http://www.parkcitiespeople.com

  5. Steve Bruner
    Member
    Plugin Author

    Posted 3 years ago #

    I'm not sure I fully understand, but to manually place the nrelate content:
    1) uncheck both Auto Layout options
    2) check where you want related to show up (ie single, archives, etc)
    3) manually place the code in the proper template file.

    That should work.

    (FYI: we know this isn't the most intuitive and we're working on a fix)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic