Support

Account

Home Forums General Issues P tags being stripped

Solving

P tags being stripped

  • For some reason when I create a child theme of Twentytwelve and use Advanced Custom Fields tags are replaced with tags.

    http://altasurgerycenter.com/our-doctors/

    • Elliot

    • July 16, 2013 at 12:43 pm

    Hi @jknetdesign

    tags are replaced with tags?

    I think the Support forum has stripped out your html. Please remember to wrap your code.

    Also, please provide the code you are using to render the value into the template

  • For some reason when I create a child theme of Twentytwelve and use Advanced Custom Fields the p tags are replaced with br tags.

    http://altasurgerycenter.com/our-doctors/

    • Elliot

    • July 17, 2013 at 2:33 pm

    Hi @jknetdesign

    What is the code you are using to render the WYSIWYG value onto the template?

  • Not sure what you mean. It’s just the WYSIWYG field in ACF. Are you regerring to the PHP statement the_field?

    • Elliot

    • July 18, 2013 at 3:32 pm

    Hi @jknetdesign

    Yes, I am referring to the PHP code you are using.

    Perhaps you have a filter that is causing p tags to turn into br tags? Have you checked your theme functions.php file?

  • Well, I have the main parent functions, and I have the child theme functions, and I have the page template itself. How can I get all these files to you?

    • Elliot

    • July 20, 2013 at 11:42 am

    Hi @jknetdesign

    I’m not hoping for you to send me a bunch of files, the ACF plugin is a developer tool and I would expect that you understand the code you have written and can debug the issue yourself.

    Please search through your theme (parent and child) for any filters which could causing this issue.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

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.