name); else: $post = $queried_object; setup_postdata( $post ); $custom = get_post_custom(); if ( !empty( $custom['fasoon_page_title'][0] ) ): echo esc_html( $custom['fasoon_page_title'][0] ); else: the_title(); endif; endif; ?>

' . esc_html($custom['fasoon_page_subtitle'][0]) . ''; } else { // get category slug in wordpress if ( is_single() ) { $cats = get_the_category(); $cat = $cats[0]; } else { $cat = get_category( get_query_var( 'cat' ) ); } $cat_slug = $cat->slug; echo '

' .category_description( get_category_by_slug( $cat_slug )->term_id ) . '

'; } wp_reset_postdata(); ?>
  • term_id == $cat->term_id ): echo 'class="active"'; endif; ?>> name ); ?>
have_posts() ): $featured->the_post(); ?>

have_posts() ) : get_template_part( 'includes/no-results', 'index' ); endif; ?>