I haven’t been able to reproduce this issue. Using this:
[catlist id=1 class='centered']
I get:
<ul class="centered">
<li>...
What version of the plugin are you using?
Hello picandocodigo
Thank you for your reply.
The plug-in version I am using is 0.37.
I did exactly what you did, using id instead of name and removed all identifiers save for class.
Also attempted to use other categories but the result is still the same.
Curious, the behaviour functions fine for the rest of the class-identifiers though.
If there is a plug-in collision going on I would expect the other CSS class identifiers to be affected too.
Additional information:
I am using a child theme and copied the default template here:
child-theme/list-category-posts/default.php
The default.php says it is version 0.9 but I noticed some changes in order of the $lcp_display_output string assignment.
So I updated the default.php with this changed code and it didn’t seem to change anything.
I also noted that the date is not wrapped by SPAN elements as it should be when you define date_class.
thumbnail_class is the only identifier that works for me.
To solve the problem I created separate templates for the different catlists and called for them in the shortcodes.
I think the template code replaces the class parameter, so you should create a template with the class you want to use.
I haven’t checked that code recently, but I think most of the “display” parameters are replaced when using the template.
Hi again
Yes that would make sense.
Perhaps this ought to be mentioned on the Other Notes page, or someplace else?
I think the LCP templates are very simple and straight-forward and anyone should be able to work with them, if only they have a wee bit of programming knowledge.
Thanks again for your responses, I hope this thread might help others who encounter the same quirk.
kind regards
/Ludwig Tr