• ModusPonen

    (@modusponen)


    Turned my html into “WordPress corrected” html, just like the WYSIWYG editor. Why can’t this just stick the html into the template? To be more specific…
    My INPUT:

    <p>stuff<a href="link"><h5>linkTitle</h5></a></p>
    <p><h4>title</h4>stuff</p>

    This plugin’s OUTPUT:

    <p>stuff<a href="link"></a></p>
    <h5>linkTitle</h5>
    <p></p>
    <br>
    <p></p>
    <h4>title<h4>
    then my paragraph completely outside of any p tag
    <p></p>

    See the difference? This is exactly the kind of garbage I would expect this plugin to NOT do. Now I know nesting headers in a paragraph isn’t “proper” coding. But this is ‘Merica and ain’t nobody gonna tell me I can’t nest headers in paragraphs. The point being, I was looking for a plugin that didn’t reorder code and this did not help me.

Viewing 1 replies (of 1 total)
  • Haven’t utilized this plugin yet but the solution to this problem is probably:

    get_field( "mycode", get_the_ID(), false );

    The third parameter (false) tells ACF not to format the value, just return the raw code. This lets the default textarea work with html, so I’d imagine it works for this plugin as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Does not work for HTML’ is closed to new replies.