Advertisement
Guest User

Rubenz Theme: Change post type in dynamic widgets

a guest
May 31st, 2022
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Portfolio Fullscreen Slider – change post type
  5.  */
  6. add_filter( 'arts/elementor/rubenz_widget_portfolio_fullscreen_slider/query_args', 'custom_rubenz_widget_portfolio_fullscreen_headings_slider_query_args' );
  7. function custom_rubenz_widget_portfolio_fullscreen_headings_slider_query_args( $args ) {
  8.   $args = array(
  9.     'post_type' => 'page', // page, post, arts_portfolio_item, etc
  10.   );
  11.  
  12.   return $args;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement