Hi @michenflu I think those are good suggestions. You can kinda achieve that by using a custom YARPP query.
Eg add this to a theme’s template file:
yarpp_related_posts(
array(
'post_type' => array('page', 'product')
)
);
to only show related pages and products.
Does that make sense? If you’re not familiar with PHP you could probably hire a developer to add something like that quite easily.
And we’re currently working on a way to more easily exclude specific posts/pages/custom post types. We expect that to be ready in the next week or two.
Oh, also if you uncheck “Display results from all post types” on YARPP’s settings page, it will only show results of the same post type. That’s exactly what you asked for, but maybe it will meet your needs?
Thread Starter
Miguel
(@michenflu)
Thank you very much for your replies. It’s great for me to know that php function.
Yes, I know there is that setting in the YARPP options but I needed a more granular configuration of the post types included.
Basically I needed posts to show posts and pages but not other post types.
And, as I said, a field to exclude based on IDs would be a great feature.
Thx!
Plugin Author
YARPP
(@jeffparker)
@michenflu
In the latest version of YARPP, you can choose the exact post types to include in “The Pool”:
https://ww.wp.xz.cn/plugins/yet-another-related-posts-plugin/#developers
Hope you like the new feature!