• Hi

    I’ve been reading up on setting a custom number of posts per category and have tried some examples and plug-ins but my pages are stuck showing 4 posts per page.
    My blog uses page template for the news,images and videos which show 4 posts by default. I would like to display 8 posts on the images page.

    Website is https://www.zoilo.co.uk/2012/

    My images page template currently looks like this
    https://pastebin.com/9s5wR1xR

    WordPress is very new to me so any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • try this one

    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $recent = new WP_Query(‘cat=8&’posts_per_page’= 4&paged=’.$paged);
    while($recent->have_posts()) : $recent->the_post();?>

Viewing 1 replies (of 1 total)
  • The topic ‘Set custom number of posts per category’ is closed to new replies.