how to loop for child pages in cutsom pages
-
hi
$args = array(
‘labels’ => $labels,
‘description’ => “A description for your accommodation type”,
‘public’ => true,
‘exclude_from_search’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘show_in_nav_menus’ => false,
‘show_in_menu’ => true,
‘show_in_admin_bar’ => true,
‘menu_position’ => 20,
‘menu_icon’ => null,
‘capability_type’ => ‘post’,
‘hierarchical’ => true,
‘supports’ => array(‘title’,’editor’,’thumbnail’,’custom-fields’,’page-attributes’,’excerpt’,’MultiPostThumbnails’),
‘has_archive’ => false,
‘rewrite’ => false,
‘query_var’ => true,
‘can_export’ => true
);
register_post_type(‘vh_accommodation’, $args);now i get the all pages and all now problem now i want get the particular parent of child pages should be displayed except parent page in the loop
- The topic ‘how to loop for child pages in cutsom pages’ is closed to new replies.