WordPress.org

Ready to get started?Download WordPress

Forums

Help!I have a big problem! (2 posts)

  1. niko-blog
    Member
    Posted 2 years ago #

    I just want to show 7 post on the home,and when you click the next page , i want to show 10 post.
    But , when i use:

    <?php
    if(is_home()&&!is_paged()){
    query_posts('showposts=7');
    }
    ?>

    when i go to the page2 , i find i miss 3 post !
    In the dashboard i set 10 post to show ,is there anyone can help?

  2. AMBA
    Member
    Posted 2 years ago #

    hi did you try to put 7 post to show in dashboard ?
    and inverse your code :

    <?php
    if(!is_home()&&is_paged()){
    query_posts('showposts=10');
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.