Skip to content

Commit

Permalink
Merge pull request #1041 from equalizedigital/feature/local-dev-branch
Browse files Browse the repository at this point in the history
cat
  • Loading branch information
tronsymphony authored Nov 22, 2023
2 parents 058fbf5 + 254f8d0 commit e4f34bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ function eqd_single_header() {
$container_class = '';
if ( get_field( 'post_format_style' ) == 'full-width' ) {
$container_class .= 'hero_relative';
} else {
$container_class .= 'inner-hero-alternate-style';
}
?>
<header class="inner-hero <?php echo wp_kses_post( $container_class ); ?>">
Expand Down
9 changes: 4 additions & 5 deletions template-parts/blocks/featured-post/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@
<div class="featured-post-container-content">
<div class="featured-post-container-info">
<div class="cat">
<?php if (!empty($category_ids)) {
foreach ($category_ids as $cat_id) {
$category = get_category($cat_id);
echo $category->name . ' ';
}
<?php
if (!empty($category_ids)) {
$category = get_category($category_ids[0]);
echo $category->name . ' ';
}
?>
</div>
Expand Down

0 comments on commit e4f34bd

Please sign in to comment.