how to get all post id from category id in wordpress code example Example: how to get category from post id get_the_category($post->ID)