Witam, wyświetlanie wpisów nie działa mi na dzieciach rodziców zaś na samym rodzicu tak.
W czym problem ?
<?php
$args = array( 'post_type' => 'dekoracje', 'posts_per_page' => 100, 'cat' => '21' );
$the_query = new WP_Query( $args );
?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h2 class="heading-page"><?php the_title(); ?></h2>
<a href="<?php the_permalink(); ?>">
<div class="col-xs-3">
<h3><?php the_title(); ?></h3>
<div class="text-post"><?php the_content();?></div>
</div>
</a>
<?php wp_reset_postdata(); ?>
<?php endwhile; ?>
<?php endif; ?>