' . tpl_get_value( 'a_folio_item_subtitle' ) . ''; } if ( wp_get_post_terms( get_the_ID(), 'a-folio-category' ) ) { $custom_content .= '
' . __( 'Categories:', 'a-folio' ) . ' ' . a_folio_category_list() . '
'; } $content = $custom_content . $content; } return $content; } add_filter( 'the_content', 'a_folio_filter_the_content' ); // Creates a comma-separated list of portfolio categories - TO BE USED IN THE LOOP function a_folio_category_list() { $output = ''; $categories = wp_get_post_terms( get_the_ID(), 'a-folio-category' ); $i = 0; foreach ( $categories as $category ) { if ( $i > 0 ) { $output .=', '; } $output .= $category->name; $i++; } return $output; } // Puts together the button link for the tiles - TO BE USED IN THE LOOP function a_folio_get_button_link( $extra_class = '' ) { $output = ''; $output .= ''; return $output; }