WordPress.org

Ready to get started?Download WordPress

Forums

Is it possible to show latest pages like we show the latest posts? (4 posts)

  1. julenissen-i-do
    Member
    Posted 5 years ago #

    Hi and hello... =)

    If we use this piece of code:

    <?php query_posts('category_name=NAME-OF-CATEGORY&showposts=1'); ?> we get the latest post of the specified category.

    What I need, is something that can let me show the latest page with a specified parent. Is it possible to do that with WordPress?

    - Thanks in advance :)

  2. Samuel B
    moderator
    Posted 5 years ago #

  3. julenissen-i-do
    Member
    Posted 5 years ago #

    Thanks ! :D

  4. julenissen-i-do
    Member
    Posted 5 years ago #

    I guess I just have to come back to this thread, as this seems to be somethig else then what I actually was looking for, and I guess my first post was just not explained enough...

    Well.. In my sidebar, I show my 10 lastest posts, containg the post Excerpt and a custom field with the posts. Now, I'm trying to create a page-template, containing the 10 latest pages with a specified parent, and at the same time show the pages Excerpt's.!

    I was thinking that something like <?php query_pages ?> should work, but as usual I was wrong =( Is there anything else I could try to make this little thing work?

    Thanks in advance :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.