January 27, 2023

Single Post

Categories


    description));

    if (strcasecmp($description, 'News') === 0) {
    $post_mode = 'news';
    break;
    }
    if (strcasecmp($description, 'Blog Posts') === 0) {
    break;
    }
    }

    $mode_description = $post_mode === 'news' ? 'News' : 'Blog Posts';
    $listing_url = home_url($post_mode === 'news' ? '/about/news/' : '/about/blog/');

    $categories = get_categories(array(
    'orderby' => 'name',
    'order' => 'ASC',
    'hide_empty' => true,
    ));

    foreach ($categories as $category) {
    $description = trim(wp_strip_all_tags((string) $category->description));

    if (strcasecmp($description, $mode_description) !== 0) {
    continue;
    }

    $category_url = add_query_arg(
    array(
    'blog_category' => $category->slug,
    'blog_search' => '',
    ),
    $listing_url
    );

    echo '

  • ' . esc_html($category->name) . '
  • ';
    }
    ?>

Categories


Chat Icon Hi, I’m Allie! How can I help you today? Open Icon