Forums

Types - Custom Fields and Custom Post Types Management
Custom Feild Checkbox - how to remove comma from output? (2 posts)

  1. Bill Gilmore
    Member
    Posted 3 months ago #

    I'm using the check boxes to add list items to an unordered list. I really don't want those commas on the output as the list items are image icons.

    I had a look at the API on the AFC website but it was no help to me, I'm pretty new to php so please keep it simple for me if you can help.

    Thanks any help would be really appreciated.

    http://wordpress.org/extend/plugins/types/

  2. Bill Gilmore
    Member
    Posted 3 months ago #

    ok this is totally non-semantic but unless anyone can help me update the PHP, I have a CSS fix to remove the commas. Below my unordered list opens and closes with a span tag to wrap the list items.

    <ul>
    <span><?php echo(types_render_field("facilities", array("arg1"=>"val1","arg2"=>"val2"))); ?></span>
    </ul>

    Each list item starts with a close span tag, and ends with and open span style which is displaying none. This means anything between list items is not displayed.

    </span><li class="cooking">Cooking</li><span style="display:none">

    Total work around but if any PHP developer can show me how to remove the comma from the output it would be appreciated. Cheers

Reply

You must log in to post.

About this Plugin

About this Topic