Problem z loop.php
-
Hej, jestem tutaj nowy, szukałem na forach ale jednak nie znalazłem rozwiązania mojego problemu.
Chciałbym aby wyświetlała mi się konkretna liczba postów z aktualności i mam taki kod który wyświetla jednak wszystkie posty:<?php if ( have_posts() ) : ?> <div id="loop" class="<?php if ($_COOKIE['mode'] == 'grid') echo 'grid'; else echo 'list'; ?> clear"> <?php while ( have_posts() ) : the_post(); ?> <div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>"> <?php if ( has_post_thumbnail() ) :?> <a href="<?php the_permalink() ?>" class="thumb"><?php the_post_thumbnail('thumbnail-front', array( 'alt' => trim(strip_tags( $post->post_title )), 'title' => trim(strip_tags( $post->post_title )), )); ?></a> <?php endif; ?> <div class="post-meta"><?php the_time(__('j/m/Y')) ?></div> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div> <div class="readmore"><a href="<?php the_permalink() ?>">» więcej</a></div> </div> <?php endif; ?>Czy możecie coś pomóc?
Z góry dziękuję.
Temat ‘Problem z loop.php’ jest zamknięty na nowe odpowiedzi.