Advertisement
phpface

Untitled

May 21st, 2022
1,354
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'pre_get_posts', function( $query ){
  2.     if( $query->is_archive() ){
  3.         $query->set( 'post_type', array( 'post', 'video' ) );
  4.     }
  5. }, 10, 1 );
Advertisement
RAW Paste Data Copied
Advertisement