Skip Navigation

[Resolved] Show child pages

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that the user wanted to list out his child posts for a hierarchical post relationship.

Solution:
Unfortunately with our plugin you're not able to list out the hierarchical relationship but only Cross CPT relationship.

For more information on how to do the relationships correctly please take a look at the link below.
https://toolset.com/documentation/post-relationships/

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Shane 4 years, 5 months ago.

Assigned support staff: Shane.

Author
Posts
#659986

I am trying to show child pages on my pages, but it turns out it is not as easy as I excepted.

I have followed the tutorials, but I am not getting any results.

I have made the following Content Templates:
Single Child Post, which is used on Pages (single)

<div class="col-md-9">
  [wpv-post-body view_template="None"]
</div>

<div class="col-md-3">
  [wpv-post-body id="$page" view_template="Sidebar Parent"]
</div>

Sidebar parent

<ol>
	[wpv-view name="listing-child-pages"]
</ol>

Listing Child Pages (this is a View)
- Select posts that are a children of the current post in the loop.

My page.php looks like this:

<?php

get_header(); ?>

<?php if ( function_exists( 'the_ddlayout' ) ) : ?>

	 <?php the_ddlayout(); ?>

<?php else: ?>

	<h1>
		<?php _e('This template requires the Drag and Drop Layout plugin.', 'dokfilm'); ?>
	</h1>

<?php endif; ?>

<?php 
get_sidebar();
get_footer();
?>

When I am on a parent page nothing comes up. And nothing on the child page if you wondered... Would you mind checking this out for me?

#660398

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

From what I can see everything is setup correctly.

Would you mind providing me with access so that I can have a further look?

Also please let me know the page that should be listing out the child posts.

Thanks,
Shane

#674225

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ole.

It seems the post relationship is setup incorrectly. Unfortunately with our plugin you're not able to list out the hierarchical relationship but only Cross CPT relationship.

For more information on how to do the relationships correctly please take a look at the link below.
https://toolset.com/documentation/post-relationships/
Thanks,
Shane