• It would be so nice if the “Posts” element could automatically display all “Siblings(Childs of the parent of that active page)”.

    For example, sometimes I have a “A specific service” page with 10 sibling-pages. I’m adding a “Posts” Element to the every other “Service” pages.

    Right now, I have to select each sibling-pages via “manual selection”. This is fine when there are just a few pages. But when the list is long or frequently updated, it can be tedious.

    I know there is a way to create custom “Query ID” for childs of a page:

    add_action( 'elementor/query/ChildOfThisPage', function( $query ) {
    	// Get current post tags
    	$current_page = get_queried_object_id();
    	// Modify the query
    	$query->set( 'post_parent', $current_page );
    } );

    But as I said I’m not able to get sibling pages.

    I’ll be very happy if someone help me to get them. Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘“Posts” Widget Query’ing “Siblings of active page”’ is closed to new replies.