You can do it in a custom template.
Hi @zymeth25 thanks for the answer
I found the default.php file and made a copy in my theme folder.
//Show the title and link to the post:
$lcp_display_output .= $this->get_post_title($post);
// Show categories
$lcp_display_output .= $this->get_posts_cats($post);
I guess I need to make the HTML structure change here but I’m not sure how to do that. Can you direct me to display these 2 elements in a common div?
I thank you in advance
Many ways to do it but the simplest one would be:
//Show the title and link to the post:
$lcp_display_output .= '<div>' . $this->get_post_title($post);
// Show categories
$lcp_display_output .= $this->get_posts_cats($post) . '</div>';
You can expand this solution by adding attributes to the div, like class etc.
It worked, thank you very much!
But I can’t assign 2 css classes in the shortcode, is it possible? Or do you have to separate them with a special character?
Example: [… posts_cats_class=”testcat entry-taxonomies” …]
In front, the 2 classes are pasted and therefore unusable
I have just tested it, when I tried [catlist posts_cats=yes posts_cats_class="test1 test2"] i got <span class="test1test2"> Gallery, Images, Jetpack</span>
which is clearly not what I intended. I will try to look into it today and push an update.
Done, fixed in v0.86.1, multiple CSS classes work as expected. Use single whitespace as delimiter like in HTML.