When it rains, most people are more concerned about finding their umbrellas or raincoats than what happens to all the water draining from their homes, driveways and yards. Yet stormwater runoff, and the pollutants it ...
if(get_field('is_this_a_topic_landing_page') == true){
// Get a list of the related topics that are in this category.
$topic_category_id = get_field('related_topic_category');
$args = array(
'post_type' => 'topics',
'posts_per_page' => -1,
'offset' => 0,
'ignore_sticky_posts' => true,
//'cat' => $topic_category_id
//'topic-categories' => 'Natural Resource Science',
'tax_query' => array(
array(
'taxonomy' => 'topic-categories',
'field' => 'id',
'terms' => $topic_category_id,
'operator'=> 'IN' //Or 'AND' or 'NOT IN'
),
),
);
// The Query
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
echo '
' . get_the_title() . ' Topics
';
echo '
';
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '