Join GitHub today
customfield_class customfield_tag are broken #201
These functions (used by shortcode) are broken in the latest version :
[catlist name="evenement" customfield_display_name="no" customfield_orderby=date numberposts=5 customfield_display=date customfield_class=css customfield_tag=span]
Notice: Undefined variable: css_class in /..../wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line 411
Notice: Undefined variable: tag in /..../wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line 411
In the generated code :
Just the custom field content, not even the default DIV or css class
Hey, I think I solved this. The get_custom_fields function was only assigning a value to $tag or $css_class if the params key mapped to an empty or null value. I'll create a pull request.
EDIT: Here's the change needed in case you need this solved right now: f4831bf .