WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Arden012
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

    Check out the allowtags parameter for fields.

  3. Arden012
    Member
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

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

  5. Arden012
    Member
    Posted 2 years 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 2 years 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
    Plugin Author

    Posted 2 years ago #

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

  8. Steve Taylor
    Member
    Plugin Author

    Posted 2 years 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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic