WordPress.org

Ready to get started?Download WordPress

Forums

Pagination & query_posts() (3 posts)

  1. marcoteu
    Member
    Posted 4 years ago #

    Hi all, :-D

    On my wordpress blog I have a Portfolio page. When the user press the Portfolio page/link, the latest posted Subpage of the parent Portfoliopage is viewed. I managed this with adding the following code on the top of the PortfolioTemplate page.

    <?php query_posts("post_type=page&orderby=date"); ?>

    But somehow I can't get my pagination code on my Subpage Template page to work anymore. It doesn't show up. Has that to do with the query_posts() function?

    Thank you for your attention,
    Marco Theunissen

  2. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    The trick is getting &paged into the mix, so to speak. Check out code in this page

  3. marcoteu
    Member
    Posted 4 years ago #

    Thanks for your reply! I'll take a look at that link and will let you know. :)
    Marco

Topic Closed

This topic has been closed to new replies.

About this Topic