Current members

[insert_php]
$fotolid = ‘‘;
$velden=get_post_field(“paying_members”, 362);
foreach ($velden as $v) {
$membersid[$v] = true;
}
$categorie = array(“europe”, “america”, “africa”, “asia”, “oceania”, “governmental-organisations”, “distributors-sales-agents”);
$categorie_naam = array(“Europe”, “North- & South America”, “Africa”, “Asia”, “Oceania”, “Governmental organisations”, “Distributors or sales agents”);

$teller = 0;
foreach ($categorie as $cat) {

if ($teller == 0) { echo “

Festivals

“; }
if ($teller < 5) { echo "

” . $categorie_naam[$teller] . “

“;}
if ($teller >= 5) { echo “

” . $categorie_naam[$teller] . “

“;}
$teller++;
$photog_posts = new WP_Query(‘category_name=’ . $cat . ‘&post_type=festivalinfo&orderby=title&order=asc&showposts=100’);
echo “

    “;
    while ($photog_posts->have_posts()) {

    $photog_posts->the_post();
    echo “

  • “;
    echo ‘‘;
    echo get_the_title();
    echo ‘
    ‘;
    $x = get_post_custom_values(“festival_country”);
    $land = $x[0];
    if ($land) { echo ” (” . $land . “) “; }

    if ($membersid[get_the_ID()]) {
    echo $fotolid;
    }
    echo “

  • “;
    }

    echo “

 

“;
}

[/insert_php]