Pilne! Templatka wyświetla tylko 1 post.
-
Witam,
Kupiłem szablon od firmy ThemeWarrior „Breaking Newz”. I mam problem z wyświetlaniem postów. Jeżeli uruchomię szablon wbudowany wszystko działa, natomiast szablon breaking newz wyświetla tylko jeden wpis -> link http://phufox.home.pl/fox/Zamieszczam kod odpowiedzialny za wyświetlanie newsów – nie znam się na budowie wordpressa więc nie jestem w stanie sam tu nic zaradzić.
<!-- LEFT COLUMN SECTION --> <div id="leftcol"> <h2 class="title"><?php _e('Najnowsze Wpisy', 'warrior'); ?></h2> <div class="inner"> <ul class="news"> <?php $exclude_cat = stripslashes( get_option($shortname.'_exclude_cat_latest_news') ); // Remove any space $exclude_cat = str_replace(' ', '', $exclude_cat); // Explode the string into array $exclude_cat = explode(',', $exclude_cat); $latest_news_total = stripslashes( get_option($shortname.'_latest_news_total') ); // Start fetching content $args=array('showposts' => $latest_news_total, 'category__not_in' => $exclude_cat, 'paged' => $paged, 'post__not_in' => $post_id_array); query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <div class="thumb"> <?php warrior_thumbnail( 'both', '300', '130', 'post-thumb', get_the_title()); ?> <span class="category"><?php the_category(', '); ?></span> </div> <h3 class="title"><a href="<?php the_permalink() ?>" title="<?php echo the_title(); ?>"><?php echo warrior_post_title('35'); ?></a></h3> <div class="meta"><?php echo get_the_date( get_option($shortname.'_date_format') ); ?> - <?php comments_popup_link( __( 'Brak Komentarzy', 'warrior' ), __( '1 Komentarz', 'warrior' ), __( '% Komentarzy', 'warrior' ) ); ?></div> <?php echo warrior_excerpt('180'); ?> </li> <?php endwhile; ?> <?php endif; ?> </ul> <?php if(function_exists('wp_pagenavi')): wp_pagenavi(); else: ?> <div class="navigation clearfix"> <div class="prev"><?php next_posts_link(__('« Poprzednie wpisy', 'warrior')) ?></div> <div class="next"><?php previous_posts_link(__('Najnowsze wpisy »', 'warrior')) ?></div> </div> <?php endif; ?> <?php wp_reset_query(); ?> </div> </div> <!-- END LEFT COLUMN SECTION -->Proszę o pomoc i pozdrawiam.
Zobacz 2 odpowiedzi - od 1 do 2 (z 2 łącznie)
Zobacz 2 odpowiedzi - od 1 do 2 (z 2 łącznie)
Temat ‘Pilne! Templatka wyświetla tylko 1 post.’ jest zamknięty na nowe odpowiedzi.