diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php index d1512a22b..9ddc27f34 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php @@ -180,7 +180,7 @@ 'singular_name' => __( 'Person' ), 'all_items' => __( 'All People' ), ), - 'public' => false, + 'public' => true, 'has_archive' => false, 'show_in_nav_menus' => false, 'show_in_rest' => true, diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-people.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-people.php index 563f13500..808dbdee5 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-people.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-people.php @@ -186,6 +186,13 @@ function geocode_location( $id ) { } if ( property_exists( $p, 'category' ) ) { wp_set_object_terms( $newid, $p->category, 'lf-person-category', false ); + + // if category contains element "Golden-Kubestronaut", then set meta field "lf_person_golden" to true. + if ( in_array( 'Golden-Kubestronaut', $p->category, true ) ) { + update_post_meta( $newid, 'lf_person_golden', true ); + } else { + update_post_meta( $newid, 'lf_person_golden', false ); + } } else { wp_set_object_terms( $newid, array(), 'lf-person-category', false ); } diff --git a/web/wp-content/themes/cncf-twenty-two/components/people-item.php b/web/wp-content/themes/cncf-twenty-two/components/people-item.php index 4c28ffbde..bc230b6f1 100644 --- a/web/wp-content/themes/cncf-twenty-two/components/people-item.php +++ b/web/wp-content/themes/cncf-twenty-two/components/people-item.php @@ -36,8 +36,13 @@ $show_modal = isset( $args['show_profile'] ) && $args['show_profile'] ? true : false; $show_logos = isset( $args['show_logos'] ) && $args['show_logos'] ? true : false; + +$extra_classes = ''; +if ( has_term( 'golden-kubestronaut', 'lf-person-category' ) ) { + $extra_classes = 'golden-kubestronaut'; +} ?> -