Okay I figured it out, I had to disable the cache lol… /sweat… thanks for your help ??
FYI most of the snippets in the link above are broken.
For others looking for the same solution as me (you can tweak it as you like):
function crp_list_cats( $output, $result, $args ) {
$categories = get_the_category_list( ", ", "", $result->ID );
$output = ' <span class="crp_category">In "' . $categories . '"</span> ' . $output;
return $output;
}
add_filter( 'crp_after_list_item', 'crp_list_cats' , 10, 3 );
You use CSS to style the <span> in your theme’s CSS file:
span.crp_category {
display: block;
//any other styles you want
}
If I had the above info earlier I would have saved quite a lot of time heh.