Support » Plugin: YARPP - Yet Another Related Posts Plugin » Recent posts not excluding on certain post categories

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YARPP

    (@jeffparker)

    By excluding a category or tag, you’re just removing that category or tag from appearing in the related posts section, not removing the related posts section from displaying on any specific type of pages.

    Instead, add the following to the top of single.php (or similar):

    <?php
    if ( in_category( 'Obituaries', get_the_ID() )) {
    	echo "<style type='text/css'>.yarpp-related {display:none;}</style>";
    }
    ?>

    Hope that helps.

    Thread Starter Bryan Cady

    (@bobcatou)

    That did it. Thanks

    Bryan

    Plugin Author YARPP

    (@jeffparker)

    Great. Glad that worked for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent posts not excluding on certain post categories’ is closed to new replies.