Support

Account

Home Forums ACF PRO Elementor – How to list custom posts + posts in relationship

Unread

Elementor – How to list custom posts + posts in relationship

  • Hi,

    I have posts, with ACF relationship that let select a custom taxonomy ‘thematique’
    I have custom posts ‘dossier’ with custom taxonomy ‘thematique’

    I wish in an Elementor custom query to display

    All custom post linked to current taxonomy + post that have this taxonomy as relationship

    Actuaylly I have this, but I don’t know how to implement my needs

    function get_posts_dossier_articles( $query ) {
    $taxonomy_slug = get_query_var('taxonomy');
    $query->set( 'post_type', [ 'post', 'dossier' ] );
    }
    add_action( 'elementor/query/dossiers_articles', 'get_posts_dossier_articles' );

    thanks in advance for your precious help or suggests !

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.