• Hi,
    I created a custom query for a post_type generated by the integration of a plugin (eventon with post_type = ajde_events), the post_type in question is not shown in the public elementor “post archive widget” area when I add the generic wordpress ‘post’ format.

    here is the code:
    ———————————————————————————–
    add_action( ‘elementor/query/customquery’, function( $query ) {
    // Set the custom post type
    $query->set( ‘post_type’, [ ‘post’, ‘ajde_events’ ] );

    } );

    ————————————————————————————-

The topic ‘Custom Post_type only see in Admin area’ is closed to new replies.