Find an minimum number of posts
-
Hello! First: Thank you for your work. I’m using your plugin in a rather large site with about 25000 Posts, which are spread over 93 categories. All those categories are in a hierarchy with 2 main categories.
We want to show a minimum of 6 related posts under each article.
Now I’ve found out that the plugin does not find enough posts in some of the smaller categories on the 3rd level of the hierarchy. I’ve already tried to give the ids of the parent-categories with the
include_terms
-parameter, but had no success.Here is my code:
$arguments = array( 'fields' => 'ids', 'taxonomies' => array('category', 'post_tag'), 'posts_per_page' => '10', 'limit_year' => '4', 'exclude_terms' => $ignoredCategories ); $related_posts = km_rpbt_get_related_posts($post_id, $arguments);
Is there a possibility to increase the amount of results by adding the parent categories or an option to tell the plugin “find at least 6”?
Thank you for your help,
Martin
- The topic ‘Find an minimum number of posts’ is closed to new replies.