WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Extra paragraph appearing in WYSIWYG editor (1 post)

  1. joecannes
    Member
    Posted 10 months ago #

    Hi,

    I am using WordPress 3.5.1 and Advanced Custom Field 4.1.6.

    I have setup a Wysiwyg Editor fieldtype for a Page, and whenever I add a shortcode or press enter, I get a blank P tag appearing or teh shoortcode is wrapped in a P tag.

    How do I solve this problem. On my template, I calling the field type like this:

    <?php
    if(get_field('field_name')== "")
    {
    echo '
    <section id="agency-intro">
    <div class="container">
    '
    . get_field('cf_agency_intro') .
    '
    </div>
    </section>
    ';
    }
    ?>

    Thanks

    JC

    http://wordpress.org/extend/plugins/advanced-custom-fields/

Reply

You must log in to post.

About this Plugin

About this Topic