Check for Child Pages, list them with Iteration
I’m creating a single testimonials page for a website with multiple product lines. (The site is for wedding rings.)
There are 16 ring collections with 12 rings in each. On this page, I want to list the collection name followed by as many testimonials as there are for that collection. (The testimonials will be child pages listed under that collection name.) Each testimonial will be accompanied by a photograph of a ring from that collection. (Luckily, the ring images are numbered 1-12 and there will never be more than 12 testimonials for any one collection.)
I have some code that lets me insert pages into pages:
$content = apply_filters(‘the_content’,$include->post_content);
How do I check for child pages, and then list that child page/testimonial and an image for that testimonial?
Your help is appreciated. Thanks.
- The topic ‘Check for Child Pages, list them with Iteration’ is closed to new replies.