Related posts in all categories of current post (custom post types)
This is the code that was needed in order to make it show only the posts (that were of a specific custom post type) that matched the same child category (therefore matching all the other categories): <!– other posts –> <?php //this gets the lowest hierarchical child term for current post $categories = get_the_category($post->ID); foreach($categories … Read more