“Require at least one tax.” not limited to taxonomies available to post type
-
It looks like setting a taxonomy to “Require at least one <taxonomy> in common” doesn’t check if the taxonomy is available for the post type, which leads to empty results if not. There is a workaround when using the API:
$related_posts = yarpp_get_related( [ 'post_type' => 'post', 'require_tax' => [], ] );
however it would be cool to check this automatically.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘“Require at least one tax.” not limited to taxonomies available to post type’ is closed to new replies.