Hi,
I created the following custom filter:
add_filter( 'cs_looper_custom_sibling_pages', function( $result, $args ) {
global $post;
$direct_parent = $post->post_parent;
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'post_parent' => $direct_parent,
'order' => 'ASC',
'post__not_in' => array( $post->ID )
);
return get_posts($args);
}, 10, 2);
I have added this to a row using a looper provider custom hook and then set a column in the row to be the consumer, the problem is that each column contains all the posts rather than 1 post per column. Any ideas how I can fix this?
Thanks