WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using pretty permalinks with custom query_post commands (2 posts)

  1. jeffgreco
    Member
    Posted 8 years ago #

    Since I want to exclude a category on my main blog page, I use the following as my query for posts:

    query_posts('cat=-3&showposts=10');

    Now, how can I change this so that when a user clicks <<Previous Posts and sees http://www.myblog.com/page/2, it shows the 10 previous posts? I thought I might be able to do this using the &paged=$var argument, but I can't figure out how to get the page number out of the pretty permalink URL.

    Thanks in advance!

  2. kikidok
    Member
    Posted 8 years ago #

    Dude, try searching the forums first -- might get answers faster. I did and it solved my problem.

    That said, http://wordpress.org/support/topic/38210?replies=14 should help you.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic