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/
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/
Check out the allowtags parameter for fields.
Obviously I should check your documentation better. Just noticed the 'allowtags' parameter, I'm guessing that'll do the trick?
Wow, we posted at exactly the same time! Yeah, that should do the trick :)
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!
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!
Glad you're finding it so useful! I can't do a project without it either.
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 :)
You must log in to post.