Hi @henrybag,
Sorry for the confussion. It has been clear now that you want to show all the child pages of the parent page of the current page.
What you are trying can be done using the Custom option and call a custom function which will return all the child pages of the parent page of the current page.
I have added the following code into my child page functions.php and mentioned the offset in the Looper Provider, and it works fine for me. I would request you to add the following code into your child theme’s functions.php and call the function as mentioned in the screenshot.
add_filter('cs_looper_custom_allchildpage', function($result, $args)
{
global $post;
echo $post->ID;
if ( is_page() && $post->post_parent )
{
$args = array(
'order' => 'ASC',
'post_parent' => $post->post_parent,
'post_status' => 'published',
);
}
else
{
$args = array(
'order' => 'ASC',
'post_parent' => $post->ID,
'post_status' => 'published',
);
}
$childpage = get_children( $args );
return $childpage;
}, 10, 2);
and add a Text element to show the Post Title using the following code.
<a href="{{dc:post:permalink}}">{{dc:post:title"}}</a>
Please find the following screenshot explaining the process.
NOTE: I have created it in my local environment and it works perfectly fine.
Hope it helps.
Thanks