1
I have a Custom post called 'Projects'. On certain pages I need to display only the 'Projects' that have the 'apps' category. So far so good, it displays in a good way. However, when I add tags to this project, I can’t just list the tags for that particular post. So tbm as I can not list all the categories that the post contains. In the code below it returns all categories, all, including those not linked to the post
<?php
query_posts(
array(
'post_type' => 'projects',
'category_name' => 'apps',
'showposts' => 3,
'orderby' => 'date'
)
);
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
$categories = get_categories($postID);
var_dump($categories);
?>
Thank you very much man, I used that same should have come here and closed the post, but that’s right. Valeus
– Will Dolmayan