Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the question-answer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u845912282/domains/pickplugins.com/public_html/wp-includes/functions.php on line 6121
related posts across all custom post types

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


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/u845912282/domains/pickplugins.com/public_html/wp-content/plugins/post-grid/includes/functions-builder.php on line 10