Changing Post Type in Dynamic Widgets

In case you want to display posts other than arts_portfolio_item in Elementor dynamic widgets, you can use the following filters to modify the query used to fetch the posts.

add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_headings_slider/query_args' );
add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_slider/query_args' );
add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_two_rows_slider/query_args' );
add_filter( 'arts/elementor/rubenz_widget_portfolio_masonry_grid/query_args' );

The code from the examples below you can use in functions.php file of Rubenz child theme.

Example

Make Rubenz Widget Portfolio Fullscreen Headings Slider to always display pages in the slider instead of portfolio items:

add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_headings_slider/query_args', 'custom_rubenz_widget_portfolio_headings_fullscreen_slider_query_args' );
function custom_rubenz_widget_portfolio_fullscreen_headings_slider_query_args( $args ) {

  $args = array(
    'post_type' => 'page', // page, post, arts_portfolio_item, etc
  );

  return $args;

}

In case you want to apply the filter on a specific page only, feel free to use any conditional statements that helps your filter to target to the right page or post.

add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_headings_slider/query_args', 'custom_rubenz_widget_portfolio_headings_fullscreen_slider_query_args' );
function custom_rubenz_widget_portfolio_fullscreen_headings_slider_query_args( $args ) {

  global $post;

  if ( $post->ID === 16 ) {
    $args = array(
      'post_type' => 'page', // page, post, arts_portfolio_item, etc
    );
  }

  return $args;

}