WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
[resolved] Exclude related posts on certain posts? (4 posts)

  1. skimdc
    Member
    Posted 1 year ago #

    I am using WooCommerce to create an online store and don't want the related posts to show up. Is there any way for the WooCommerce product posts to not have it show up? It's operating in a different system than the other posts so categories don't overlap.

    http://wordpress.org/extend/plugins/contextual-related-posts/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Right now, there isn't a feature for this. You should use the manual install option and edit your single.php to add the code.

  3. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    The latest version of the plugin allows you to provide a comma-separated list of post IDs you don't want the related posts to show up on

  4. siriomi
    Member
    Posted 1 year ago #

    This doesn't seem to work for pages, but this is what I did to exclude particular pages, within the page template....

    <?php
    	if ( is_page(array(424, 422, 7, 475, 472, 468)) || is_front_page()) {
    		echo('');
    	}
    	else {
    		if(function_exists('echo_ald_crp')) echo_ald_crp();
    	}
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.