Posted By

j4v3d on 10/20/15


Tagged

php pages wordpress child Parent


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Shoora
tryan326


List Child Pages of Parent Page (WordPress)


 / Published in: PHP
 

Get child Pages from Root Node being the homepage or specify page ID of another page

  1. $getChildOutlets = array('post_parent'=>9,'post_type'=>'any','post_status'=>'publish', 'orderby'=>'menu_order','order'=>'ASC');
  2. $homeChildren = get_children($getChildOutlets);

Report this snippet  

You need to login to post a comment.