I don't want to display subpages excerpt on parent page…
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
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
Add this code in your child theme’s functions.php file:
$args = array(
'child_of' => $post->ID,
'sort_column' => 'menu_order',
'hierarchical' => 0,
'parent' => $post->ID,
'post_type' => 'page',
'post_status' => 'publish'
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
You must be logged in to reply to this topic.