Ilość stron wyświetlanych w podstronie
-
Witam, tworzę galerie i mam problem z wyświetleniem ilości wpisów na tej podstronie. Na stronie głównej jest widoczne tylko 5 wpisów, w podstronie chce aby było o wiele więcej widocznych.
Jak to działa: jest w menu rodzić, który posiada dzieci i te dzieci są wypisywane
[] [] []
[] [] []chodzi aby zwiększyć z 5 widocznych np do 20.
Daje kod szablonu
<?php /* Template Name: Galeria */ ?> <?php get_header(); ?> <div class="content" style="width: 100%;"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <p class="content-date"></p> <?php $args = array( 'post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => 'menu_order' ); $child_query = new WP_Query( $args ); ?> <?php while ( $child_query->have_posts() ) : $child_query->the_post(); ?> <div class="boxes"> <div <?php post_class(); ?>> <h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h3> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'gallery-thumb', array('class' => 'gallery-thumb') ); } ?></a> </div> </div> <?php endwhile; ?> </div> <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- Temat ‘Ilość stron wyświetlanych w podstronie’ jest zamknięty na nowe odpowiedzi.