-
+
Last reviewed: = the_modified_date('j F Y') ?>
-
+
- Content tagged as:
- name . ', ';
- }
- }
- ?>
-
+
+ Content tagged as: = join(', ', $term_names) ?>
+
diff --git a/public/app/themes/clarity/src/components/c-news-article/view.php b/public/app/themes/clarity/src/components/c-news-article/view.php
index 19156c083..125667583 100644
--- a/public/app/themes/clarity/src/components/c-news-article/view.php
+++ b/public/app/themes/clarity/src/components/c-news-article/view.php
@@ -15,7 +15,10 @@
$query_args = new SearchQueryArgs((new Agency())->getCurrentAgency()['wp_tag_id'], 'news', 1, 6, true);
// Run the query.
-$query = new WP_Query($query_args->get());
+$recent_query = new WP_Query($query_args->get());
+
+// Reset the post data.
+wp_reset_postdata();
?>
@@ -37,9 +40,12 @@
Recent news';
- foreach ($query->posts as $key => $post) {
+ $main_post = $post;
+ foreach ($recent_query->posts as $key => $post) {
include locate_template('src/components/c-article-item/view-news-feed.php');
}
+ $post = $main_post;
+ unset($main_post);
?>