'announcement', 'post_status' => 'publish', 'posts_per_page' => 5, 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); if ($announcements->have_posts()) : while ($announcements->have_posts()) : $announcements->the_post(); $announcement_excerpt = get_the_excerpt(); if ('' === trim($announcement_excerpt)) { $announcement_excerpt = wp_trim_words(wp_strip_all_tags(get_the_content()), 40, '...'); } ?>

    'news', 'post_status' => 'publish', 'posts_per_page' => 5, 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); if ($blogs->have_posts()) : while ($blogs->have_posts()) : $blogs->the_post(); $blog_excerpt = get_the_excerpt(); if ('' === trim($blog_excerpt)) { $blog_excerpt = wp_trim_words(wp_strip_all_tags(get_the_content()), 40, '...'); } ?>