Hi fadingmusic. If you’re using the default call to the theme query:
<?php $related = hu_related_posts(); ?>
you would copy the /functions/init-front.php function ‘hu_related_posts()’ to your child theme and add the custom post type as a query parameter:
https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Type_Parameters
-
This reply was modified 9 years, 8 months ago by
bdbrown.
-
This reply was modified 9 years, 8 months ago by
bdbrown.
Thank you kindly for your reply, bdbrown!
I’ve succesfully copied and added the custom post type as a query parameter.
However, I want the related posts to only display custom post type posts from the current taxonomy term. I have a Custom Post Type called ‘review’ and I ‘m using a Custom Taxonomy called ‘artist’
Thank you in advance!
Then you need to add the taxonomy as an additional query parameter:
https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Taxonomy_Parameters
-
This reply was modified 9 years, 8 months ago by
bdbrown.
Thank you, and sorry for the late reply.
I can’t quite figure out how to only display posts from the current taxonomy term.