How do I get the child category posts from a custom post type?

I have a Custom Post Type called “Movies” with 2 categories called “Now Showing” (cat id=6), and “Coming Soon” (cat id=7)

I am trying to alter the code to only pull in the child category for two separate pages, instead of ALL of the posts within the custom post type.

Read More

Here is the code I am trying to change: (Any help would be great!)

            <h3 class="section-title">Now Showing</h3>

            <?php
            $args = array( 'post_type' => 'movies', 'paged'=>$paged );
            $loop = new WP_Query( $args );
            $i = 1;

            while ( $loop->have_posts() ) : $loop->the_post(); ?>

                <?php include( TEMPLATEPATH . '/includes/show-movies.php' ); ?>

            <?php endwhile; ?>

Related posts

Leave a Reply

1 comment