WordPress.org

Support

Support » Requests and Feedback » Is it possible to show latest pages like we show the latest posts?

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

  • 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 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks ! 😀

    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 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to show latest pages like we show the latest posts?’ is closed to new replies.
Skip to toolbar