// Answer from https://github.com/elementor/elementor/issues/5457 // Thanks to adi-do add_action( 'elementor/query/my_custom_filter', function( $query ) { // The author of the current post $author_id = get_the_author_meta('ID'); $query->set( 'author', $author_id ); } );