سؤال

I want to have my custom field use HTML, how do I do that in such a way that I can use a rich text editor to view the content?

هل كانت مفيدة؟

المحلول

You can use Advanced Custom Fields plugin.

It's pretty easy to use and very powerful, so it's the best choice right now, I guess.

نصائح أخرى

I sometimes use Custom fields Template : http://wordpress.org/extend/plugins/custom-field-template/

You can attribute a type to your field (wysiwyg, list, image...)

See this example on github for an own meta boxes and add your specialy boxes for your type of content. You can also read this post for this example plugin.

screenshot of the example plugin

http://sltaylor.co.uk/blog/control-your-own-wordpress-custom-fields/

Found this, but I can't comment on whether the approach used is good or not, but it certainly covers what you want to do and more (storing and retrieving data that is not stored as post metadata.)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top