Support » Fixing WordPress » blog roll 1 post per page question

  • I need a query that will get all the posts but only show 1 post per page.

    $args = array(
    			'post_type'=> array('post', 'strange-or-love'),
    'posts_per_page' => 1,
    			 'orderby' => 'post_date',
    			 'order' => 'DESC'
    
    					);

    this is what i have so far.

    My previous button
    <?php posts_nav_link('','','&laquo; Previous Entries') ?>

    moves to page 2 but the content is always the same. the content doesn’t change…that is my problem.

    If anyone could help i would really appreciate it.

    Ilan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Christine Rondeau

    (@crondeau)

    Volunteer Forum Moderator

    Why not just change the number of posts to display in the settings? General > Reading — change the number of posts from 10 to 1.

    That would be the easiest thing to do.

    this is a custom blog roll separate to the website one…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘blog roll 1 post per page question’ is closed to new replies.