Yet Another Related Posts Plugin (YARPP)
Exclude CPT from being shown in normal Articles (1 post)

  1. Albert Brückmann
    Posted 1 year ago #

    When I am seeing normal articles, yarpp should show related articles (of all categories). When I am in a custom post type, I only want CPTs as related articles.

    I can achieve the first part of my need by checking the option " Display results from all post types".

    But when I avtivate this option, I get no related articles in my CPTs at all.
    This is how I activated YARPP for my custom post type:

    add_filter('bf_cpt_args', 'bf_cpt_yarpp_support', 10, 2);
    function bf_cpt_yarpp_support($args, $post_type) {
      if ($post_type == 'produkte-dienste') $args['yarpp_support'] = true;
      return $args;

    What can I do next?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Albert Brückmann
  • This topic is not resolved
  • WordPress version: 3.8.1