function fl_builder_loop_query_args_filter( $query_args ) {
// if the module has "author-portfolio" as ID in Advanced tab
if ( 'author-portfolio' == $query_args['settings']->id ) {
//we are getting the author ID of the archive...
$author_id = get_query_var( 'author' );
//and putting that in the query
$query_args['author'] = $author_id;
}
return $query_args;
}
add_filter( 'fl_builder_loop_query_args', 'fl_builder_loop_query_args_filter' );