Add Category to Output
-
Hey,
I am using your code in my function.php to add categories to my output
function crp_list_cats( $output, $result, $args ) { $categories = get_the_category_list( ', ', '', $result->ID ); $output .= ' ' . $categories; return $output; } add_filter( 'crp_after_list_item', 'crp_list_cats', 10, 3 );I am not proficient in php,…is there a way to display the category before the title. Right now it is outputting an image, then the title, then the category
THANKS!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Add Category to Output’ is closed to new replies.