Skip Navigation

[Résolu] Show child pages

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 réponses, has 2 voix.

Last updated by Shane Il y a 6 années.

Assisted by: Shane.

Auteur
Publications
#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: Anglais (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: Anglais (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

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.