Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you display a list of child pages in wordpress?



How can you display a list of child pages in wordpress?..

Answer / Bibin Abraham

To display a list of child pages, you can use the WP_Query function and set 'posts_per_page' to -1. Here is an example: $args = array('parent' => get_the_ID(), 'posts_per_page' => -1); $query = new WP_Query($args); while ($query->have_posts()) : $query->the_post(); the_title(); endwhile; wp_reset_postdata();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

Can I have 2 wordpress sites?

1 Answers  


Can wordpress be used offline?

1 Answers  


Why to use mysql for wordpress?

1 Answers  


Is wordpress suitable for ecommerce?

1 Answers  


Do I need to have a blog in order to use wordpress for my site?

1 Answers  


Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?

1 Answers  


What is private visibility on wordpress?

1 Answers  


How do I get a short code?

1 Answers  


What is an sql file?

1 Answers  


What are the functions of file?

1 Answers  


What can you do on wordpress?

1 Answers  


Explain when are you supposed to use endif to end the conditional statement?

1 Answers  


Categories