Display term (Category, Tag, Taxonomy) as output

With Content Views Pro, you can display terms (categories, tags, custom taxonomy) as output easily (view demo).

You can do it easily with simple steps below:

  • In “Filter Settings” tab, select the All/Multi post types option of “Content Type”:
    CVP - select all post types
  • In “Advance” section, select Taxonomy (Categories, Tags…) checkbox.
  • Select the taxonomy (for example: Category), then select terms to display in the Select Terms field.

    Content Views Pro - show category as output

    You can leave the “Select Terms” empty to display ALL terms automatically.

  • Select the Show terms as output option of “Output Modification”.

You can change the layout (Grid, Pinterest, List…) in the “Display Settings” tab.
You can change the style (color, font…) in Style Settings >> Taxonomy As Output.

Since version 5.8.0, you can show the number of posts next to each term.

# Display term’s description:

In the “Display Settings” tab, please select the checkbox Show Content in the “Fields Settings”.

# Display term’s image:

  1. Select Show Thumbnail checkbox in Display Settings >> Fields Settings of the View.
  2. Edit each category/tag/term, then select thumbnail image for it:

    CVP - add image to WordPress category

# Notice:

If you are using Content Views Pro version 5.4.1 and earlier, adding image to term is not possible yet.
We recommend you to install the Advanced Custom Fields (ACF) plugin to add image field to term.
Then please add this code to file functions.php in the theme’s folder:

// Content Views Pro - get term image from ACF
add_filter( 'pt_cv_term_thumbnail', 'cvp_theme_term_thumbnail_acf', 100, 2 );
function cvp_theme_term_thumbnail_acf( $thumb, $term ) {
	$field	 = get_field( 'ACF_FIELD_HERE', $term );
	$thumb	 = '<img src="' . $field[ 'url' ] . '" />';
	return $thumb;

(replace ACF_FIELD_HERE with name of the image field you created)

Thank you,