related posts across all custom post types

0
related posts across all custom post types 1
Anonymous
Jun 01, 2020 09:34 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

Hi,

I am using the related posts plugin with a number of custom posts and taxonomies. It look like by default related posts are only selected from the same custom post type. I have added a filter that includes all cpts as "post_type", but that doesn't change anything... Is there a way to extend the selection of related posts across other cpt?

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
related posts across all custom post types 2
PickPlugins
Jun 01, 2020
Flag(0)

Welcome to our forum.

By default, it will query from same post type and same category or custom taxonomies that exist on current post, that make it related posts query, although you can override post query arguments by filter hook, please see the documentation

https://pickplugins.com/documentation/related-post/filter-hook/related_post_query_args/

Please let me know if you need any help.

Regards

Sign in to Reply
Replying as Submit