Loop through the current post's childrens
-
Hello, each of my
customPost
possesses severalcustomChild
. I would like to list all the childrens of a parent, on a dedicated page. I can’t access the the childrens of the current post using this. What did I do wrong? Maybe you can help me?<?php $args = array( 'post_type' => 'customChild', 'post_status' => NULL, 'post_parent' => $post->ID // this returns my 'customPost' ID ); $revues = new WP_Query( $args ); while ( $revues->have_posts() ) : $revues->the_post(); ?> <div> <?php the_title() ?> </div> <?php endwhile;?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Loop through the current post's childrens’ is closed to new replies.