Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Display categories as tags Reply To: Display categories as tags

#5266
Tom
Keymaster

It’s currently not possible by default, but you may be able to do something like this:

add_filter( 'wpsp_terms_output', function( $output ) {
	$categories_list = sprintf(
		'<span class="categories-list">%s</span>',
		get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'wp-show-posts' ) )
	);

	return $output . $categories_list;
} );