문제

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