Senaste inläggen

[insert_php]

$paged = ( get_query_var(’paged’) ) ? get_query_var(’paged’) : 1;
$query_args = array(
’post_type’ => ’post’,
’posts_per_page’ => 20,
’paged’ => $paged
);

$the_query = new WP_Query( $query_args );

if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();

echo ”

”;
echo the_title();
echo ”

”;
echo get_the_author();
echo ”


”;

endwhile;

if ($the_query->max_num_pages > 1) {

echo ”

”;
echo get_next_posts_link( ’Äldre’, $the_query->max_num_pages );
echo ”   ”;
echo get_previous_posts_link( ’Nyare’ );
echo ”
”;
}

else
echo ”

”;
echo ””;
echo ””;
echo ”

”;
endif;

[/insert_php]