WordPress.org

Ready to get started?Download WordPress

Forums

blog roll 1 post per page question (3 posts)

  1. iperez_genius
    Member
    Posted 1 year ago #

    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

  2. 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.

  3. iperez_genius
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags