Forums

Developer's Custom Fields
[resolved] Prevent HTML from stripping out textarea (7 posts)

  1. Arden012
    Member
    Posted 7 months ago #

    Is there any way I could prevent the HTML from being stripped out in a textarea on save? I want my users to be able to paste embed codes into a textarea. Thanks!

    http://wordpress.org/extend/plugins/developers-custom-fields/

  2. Steve Taylor
    Member
    Posted 7 months ago #

    Check out the allowtags parameter for fields.

  3. Arden012
    Member
    Posted 7 months ago #

    Obviously I should check your documentation better. Just noticed the 'allowtags' parameter, I'm guessing that'll do the trick?

  4. Steve Taylor
    Member
    Posted 7 months ago #

    Wow, we posted at exactly the same time! Yeah, that should do the trick :)

  5. Arden012
    Member
    Posted 7 months ago #

    lol, scary! But thanks for your lightning quick response! Also I'd like to take the opportunity to thank you for an awesome plugin. I'm always a bit weary to rely on plugins, but I actually found your guide to custom fields first and used that untill I noticed you wrapped it into this neat little thing. From now on this will be in all my custom templates!

  6. Arden012
    Member
    Posted 7 months ago #

    Oh while I'm at it, is it possible to decide the scope on custom taxonomie or custom post templates? (the gallery, video, aside, etc. templates). Thanks!

  7. Steve Taylor
    Member
    Posted 7 months ago #

    Glad you're finding it so useful! I can't do a project without it either.

  8. Steve Taylor
    Member
    Posted 7 months ago #

    You'll find all the possibilites for field scope in the docs:

    http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#functions-boxes-fields

    You can specify taxonomy, sure. I've not used post formats (I assume this is the second thing you're talking about), but I'll add it to my to-do list. Meantime, you can use the slt_cf_check_scope filter to implement it:

    http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#hooks

    Or send me a patch :)

Reply

You must log in to post.

About this Plugin

About this Topic