• I have custom post types and custom taxonomies. When I fetch posts using the following code, no taxonomies are returned, how to I get post along with taxonomies it attached to?

    args = ['post_type' => 'myposttype'];
        $query = new WP_Query($args);
    
        while ( $query->have_posts()) : $query->the_post();
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get posts with its taxonomies’ is closed to new replies.