Wsparcie » Zaawansowane » Paginacja na stronie głównej ??

  • Witam,
    mam kod:

    <?php $args = array('cat' => '3, 7, 10, 12', 'posts_per_page'=> 3); ?>
          <?php query_posts($args); ?>
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
             
                  <article class="col-md-12">
                    <a href="<?php the_permalink(); ?>" >
                         <div class="image"><img class="img-responsive" src="<?php echo the_post_thumbnail_url( 'medium' ); ?>"></div></a>
                       <div class="entry entry-table">
                           <div class="title">
                             <a href="<?php the_permalink(); ?>" ><h3 class="h5"><?php the_title(); ?></h3></a>
                             <span class="cateogry<?php echo get_the_category( $id )[0]->cat_ID; ?>"><?php echo get_the_category( $id )[0]->name; ?></span>
                          <p><?php echo get_excerpt(228, 'content'); ?>
                             <a class="linkmore" href="<?php the_permalink() ?>">Czytaj dalej ...</a>
                          </p>
                           </div>
                       </div>
                      
                 </article>
               
              <?php endwhile; endif; ?>

    Jak zrobić paginację dla powyższego kodu? Dodam, że to wyświetla się na stronie głównej.

  • Temat ‘Paginacja na stronie głównej ??’ jest zamknięty na nowe odpowiedzi.