Posts_per_page na dziecku rodzica
-
Witam, problem mam taki, że na rodzicu wyświetlają mi się posty a zaś na dziecku nie.
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>
„>
<div class=”col-xs-3″>
<h3><?php the_title(); ?></h3>
<div class=”text-post”><?php the_content();?></div>
</div>
<?php wp_reset_postdata(); ?>
<?php endwhile; ?>
<?php endif; ?>
————————————————————————————-
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- Temat ‘Posts_per_page na dziecku rodzica’ jest zamknięty na nowe odpowiedzi.