Commit 1105aef9 authored by Stefan.Bruckner's avatar Stefan.Bruckner
Browse files

group list

parent a672d61e
......@@ -33,6 +33,29 @@ the_post();
<?php } ?>
<div class="team-info col-md-8">
<?php
$group_args = array(
'post_type' => 'Groups',
'meta_query' => array(
array(
'key' => 'group_members',
'value' => '"' . get_the_ID() . '"',
'compare' => 'LIKE'
)
)
);
// query
$group_query = new WP_Query( $group_args );
// loop
while( $group_query->have_posts() )
{
$group_query->the_post();
echo "<a href=". get_permalink($group_query->ID) . ">" . get_the_title($group_query->ID) . "</a></li>";
}
wp_reset_postdata();
?>
<h2><?php the_field('team_position'); ?></h2>
<p><?php the_field('team_topics'); ?></p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment