Forums

[resolved] Displaying a link to latest grandchild on frontpage (2 posts)

  1. pixeline
    Member
    Posted 2 years ago #

    Hi!

    I have a page ("testimonials"). It has 3 subpages ("children") : "press", "people", "enterprises".

    Each of them subpages have their own subpages (grandchildren of "Testimonials"), which are the actual testimonials.

    I would like to display on my frontpage whenever there is a new grandchild. How can i do that?

    I tried using get_pages() like this:

    $myposts = get_pages('number=1&child_of=28&sort_column=post_date&sort_order=desc&parent=');

    But no luck: it either displays a child or nothing.

    Your help would be much appreciated.

  2. pixeline
    Member
    Posted 2 years ago #

    I solved it using a specific query.

    More info on my blog post about displaying a link to a page's latest grandchild.

Topic Closed

This topic has been closed to new replies.

About this Topic