related posts across all custom post types

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to
Jun 01, 2020 09:34 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe


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
Jun 01, 2020

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

Please let me know if you need any help.


Sign in to Reply
Replying as Submit

Please use to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets