'wp_template', ); $query = new WP_Query( $query_args ); foreach ( $query->posts as $key => $post ) { $post_id = $post->ID; $current_post_assets = new UAGB_Post_Assets( intval( $post_id ) ); $current_post_assets->enqueue_scripts(); } } } } UAGB_Twenty_Twenty_Two_Compatibility::get_instance();