'featured', 'posts_per_page' => 1 ) ); ?>

Categories

    All Posts'; $defaultCategory = ''; foreach( $categories as $category ) { if( $category->slug == 'featured' ) { continue; } if( $i == 0 ) { // $defaultCategory = $category->slug; } // $active = ( $i == 0 ) ? 'active' : ''; echo '
  • ' . $category->name . '
  • '; $i++; } ?>
have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); $featuredImage = get_the_post_thumbnail_url($post->ID, 'category-thumb'); $featuredTitle = get_the_title(); $featuredURL = get_permalink(); $featuredContent = wp_trim_words( get_the_content(), $num_words = 30, $more = null ); $authorName = get_the_author(); $authorAvatar = get_avatar_url( get_the_author_meta( 'ID' ), 64 ); $authorURL = get_author_posts_url( get_the_author_meta( 'ID' ) ); $updatedDate = get_the_modified_time( 'F jS, Y' ); } ?> 'featured', 'posts_per_page' => 5 ) ); ?> have_posts() ) { ?>

Featured Posts

    have_posts() ) { $the_query2->the_post(); $featuredImage = get_the_post_thumbnail_url($post->ID, 'category-thumb'); $featuredTitle = get_the_title(); $featuredURL = get_permalink(); $featuredContent = wp_trim_words( get_the_content(), $num_words = 30, $more = null ); $authorName = get_the_author(); $authorAvatar = get_avatar_url( get_the_author_meta( 'ID' ), 64 ); $authorURL = get_author_posts_url( get_the_author_meta( 'ID' ) ); $updatedDate = get_the_modified_time( 'F jS, Y' ); ?>