Hellow, mam problem. Pod swój statyczny szablon podstawiłem Wordpressa. Wszystko hula (kategorie, newsy, przenoszenie na podstrony itd). Mam tylko jeden, jedyny problem: Nie mogę dodać pagingu na podstronę z newsami. Próbowałem: https://codex.wordpress.org/Function_Reference/posts_nav_link#Examples ale nie dało nic. Po prostu nie wyświetla mi nic, bez względu czy dam echo, czy nie.
<?php /* Template Name: aktualnosci */?>
<?php get_header(); ?>
<div id="content-container">
<?php get_sidebar(); ?>
<div class="news-news">
<?php query_posts( 'cat=5' ); ?>
<?php if ( have_posts() ) : ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="news">
<div class="top-news">
<div class="news-title"><a href=<?php echo the_permalink(); ?>><?php the_title (); ?></a></div>
<div class="news-date"><?php the_date(); ?></div>
</div>
<div class="clear"></div>
<div class="news-image"><a href=<?php echo the_permalink(); ?>><?php the_post_thumbnail(); ?></a></div>
<div class="news-content"><?php the_content(); ?></div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div class="clear"></div>
<?php get_footer(); ?>