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 |
Can I have 2 wordpress sites?
Can wordpress be used offline?
Why to use mysql for wordpress?
Is wordpress suitable for ecommerce?
Do I need to have a blog in order to use wordpress for my site?
Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
What is private visibility on wordpress?
How do I get a short code?
What is an sql file?
What are the functions of file?
What can you do on wordpress?
Explain when are you supposed to use endif to end the conditional statement?