From 09a8d45ffc49afd23ca855034acf8b63314457bc Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Tue, 20 Aug 2024 09:34:41 +0700 Subject: [PATCH] Swap in recent P J Reports for outdated Tech Radars in menu Signed-off-by: Chris Abraham --- .../cncf-twenty-two/components/header.php | 88 ++++++------------- 1 file changed, 26 insertions(+), 62 deletions(-) diff --git a/web/wp-content/themes/cncf-twenty-two/components/header.php b/web/wp-content/themes/cncf-twenty-two/components/header.php index 0bee7e436..68a6c5a24 100644 --- a/web/wp-content/themes/cncf-twenty-two/components/header.php +++ b/web/wp-content/themes/cncf-twenty-two/components/header.php @@ -153,74 +153,38 @@
- -
key; - $radar_title = $tech_radar->name; - $date = $tech_radar->date; - $image = $tech_radar->image; - ?> - - - 'lf_report', + 'post_status' => array( 'publish' ), + 'posts_per_page' => 3, + 'orderby' => 'date', + 'order' => 'DESC', + 'tax_query' => array( + array( + 'taxonomy' => 'lf-report-type', + 'field' => 'slug', + 'terms' => 'project-journey', + ), + ), + ); + + $query = new WP_Query( $pj_reports ); + + if ( $query->have_posts() ) : + while ( $query->have_posts() ) : + $query->the_post(); + get_template_part( 'components/main-menu-item' ); + endwhile; + endif; + wp_reset_postdata(); ?>
- +