Cs_looper_custom repeating the loop

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

Hi,

I’ve figured this out, to solve it I had to take my owl carousel classes off of the row and use some JavaScript to add them onto the div.x-row-inner element.

Hello @stevenburles,

Thanks for writing to us.

Glad that you were able to fix your issue by yourself. Please feel free to reach us if you have any query regarding our theme and theme settings.

Have a great day!
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.