I don't want to display subpages excerpt on parent page…

  • dbsporting

    #538

    Hi Syahir,

    Is it a way on pages to remove the display of sub-pages ???

    Thanks.

    Regards,

    Fonfon

    Admin

    Syahir Hakim

    #12829

    Just create an empty file called loop-children.php in your child theme’s folder. The next version will include an option to disable the child pages listing.

    Fonfon

    #12830

    It works fine !

    Thanks !

    maria cap

    #12831

    I accidently deleted the code in the loop-children.php file. Can you send it to me again? I was trying to copy and paste it into a word document so I could see how i could edit it so that the subpages would appear in the same order as listed in the navigation, but I accidently hit cut and it disappeared….help… thank you

    maria cap

    #12832

    Syahir,

    I was able to get the code back for the loop-children.php file. But how do I make it so it lists the child pages in the custom order i used in the navagation rather than in alphabetical order? Btw in my panic in my last post i forgot to mention how wonderful the graphene theme is!

    Admin

    Syahir Hakim

    #12833

    Add this code in your child theme’s functions.php file:

    function graphene_child_pages_order(){
    $args = array(
    'child_of' => $post->ID,
    'sort_column' => 'menu_order',
    'hierarchical' => 0,
    'parent' => $post->ID,
    'post_type' => 'page',
    'post_status' => 'publish'
    );
    return $args;
    }
    add_filter('graphene_child_pages_args', 'graphene_child_pages_order');

    maria cap

    #12834

    thanks 🙂

    dabrowski

    #12835

    Sorry if I missed it, but does this say where the child page list pulls the image from? All the children pages are pulling the same image (from somewhere) and I can’t figure out where.

    josemgb

    #12836

    Same issue about repeated images here dabrowski. Where is the image from the child pages coming from?

    Admin

    Syahir Hakim

    #12837

    There’s a bug in this feature currently that causes the child pages to take the post thumbnail of the parent page. This has been fixed and will be available in the next update.

    If you want to fix it yourself see this code diff: http://code.google.com/p/graphene/source/diff?spec=svn88&r=88&format=side&path=/trunk/graphene/loop-children.php&old_path=/trunk/graphene/loop-children.php&old=68

Viewing 10 posts - 1 through 10 (of 16 total)

You must be logged in to reply to this topic.