Elementor: Finde custom post type

add_action( ‚elementor/query/my_custom_filter‘, function( $query ) {
// Here we set the query to fetch posts with
// post type of ‚custom-post-type1‘ and ‚custom-post-type2‘
$query->set( ‚post_type‘, [ ‚custom-post-type1‘, ‚custom-post-type2‘ ] );
} );

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert