OK just find out why !
I made a mistake in my conditional logic. Choosed User Role > Administrator so the field was displayed everywhere.
SO if you have this bug : control your conditional logic
Further information : downgrading to version 5.1.0 not working for me
Hi Elliot Great Job !
Just uprgade to 4.3.7 and the code button is back.
Do you thinh we can also have the Edit / Text tabs ?
Hi,
Got the same bug on Chrome 34 on a WYSIWIG Field inside a Repeater field.
For record : on Firefox 27.0 the toolbar doesn’t show, but everything is ok on FF 28.0 (except that the HTML button is not shown)
Hi @elliot
Found with a teammate a solution. Again right in the codex 🙂
So if you want to displau the code of a Wysiwig field just use the esc_html() function.
Example :
<?php echo esc_html(get_field('my_wysiwig_field')); ?>
or (for a sub field)
<?php echo esc_html(get_sub_field('my_wysiwig_field')); ?>
Hi @elliot
Sorry if I’m not clear, English is not my natural language 🙂
I’ll try to explain what I want my users can do :
I need a field which allow my user to type a text whith format option (WYSIWIG I suppose) and I need that text to be render in 2 ways in front end :
– 1 plain text version
– 1 HTML version insert in a < pre > < code > section.
Use case is : My user type a text for example “My tailor is rich !” > on front it will render this text in 2 versions :
– 1 versions in a readable format : My tailor is rich !
– and another version in a < pre > < code > section with all html markup : < p >My tailor is < strong >rich< / strong > !< / p >
My first though was to use the WYSIWIG field type but I wonder how to make it render plain text HTML. Using a filter maybe ?
Hope this time I was more explicit 🙂 If not, will continue my investigation ^^
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.