Hi,
I hacked include/lcp-catlist.php (or CatList.php depending on which version you are using) to put in a span around each customfield. Of course you could add whatever HTML you like.
In lcp-catlist look for where it adds the field to the output string:
if ($this->params[‘customfield_display_name’] != “no”)
$lcp_customs .= $user_customfield . ” : “;
$lcp_customs .= $value;
and just concatenate whatever HTML strings you want before and after $value in that third line.
Not pretty to have to alter the plugin code but it works.
If there’s a more standard way to do it I’d be pleased to hear.
Thread Starter
Dani
(@danicasati)
It would be better to add customized separators and labels by shortcodes?
Is this possible?
Hi, as far as I can see there is no way of doing this at the moment.
You could define extra parameters (e.g. xxxx_tag) for the shortcode I guess and then put them round each customfield value.
However, I do it the way I do it because I want to create the class dynamically depending on each field’s name so it has to be done at run time.