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?
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
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