Support

Account

Forum Replies Created

  • Hey Helmet,

    thank you for your answer. I allready found a solution with the help of a developer.
    It seems quite similar to yours.

    Just for anyone who’s interested:
    `
    <?php
    $locations = get_sub_field(‘orte_eingrenzen’);
    $locationsSelected = array();
    foreach( $orte as $ort ):
    $locationsSelected[] = $ort->slug;
    endforeach;

    $loop = new WP_Query( array( ‘post_type’ => ‘kurse’, ‘posts_per_page’ => 99, ‘meta_key’ => ‘datum’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’,

    ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘loacations’,
    ‘field’ => ‘slug’,
    ‘terms’ => $locationsSelected
    )
    )
    ) );
    ?>

Viewing 1 post (of 1 total)