How to change child pages listing from ASC to DESC?

  • itsen



    I want to change the child pages listing from ascending to descending but I have no idea how to do it.

    I found this in the loop-children.php:

    $args = array(
    'post_parent' => $post->ID,
    'orderby' => 'menu_order title',
    'order' => 'ASC',
    'post_type' => 'page',
    'posts_per_page' => -1

    What should I write in the child loop-children.php? Should I copy everything from the main but change the ASC to DESC?


    Syahir Hakim


    You will need to use a child theme for this. Have you got one? If not, here’s a guide:



    Thank you very much!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.