Support

Account

Home Forums Bug Reports paragraph is added for the new version

Solving

paragraph is added for the new version

  • Hello,

    I’ve a problem since the new version of ACF.

    I display a text field, like a link :

    <a href="http://<?php the_field('agenda_lien'); ?>" target="_blank"> 
        <?php echo the_field('agenda_lien'); ?>
    </a>

    And this is what we can see

    <a target="_blank" href="http://<p>www.mieux-vivre.ch</p>"> 
        <p>www.mieux-vivre.ch</p>
    </a>

    Do you know why?
    Thank you for your help

    There is the website : http://www.nature-sciences-sante.eu/agenda/

  • Looking at the front end of the site won’t really help.

    What version of ACF, 4 or 5?

    And I just want to make sure that the field type is definitely “text”.

    And where are you including this code? Is it in a template file or is it somewhere else?

  • Hi, Sorry for this long time.

    I’ve the version 4.4.10.
    It’s a type “text”.

    And I include this code in the template.

    Can I give you other information?

    Thank you for your help!
    Have a nice day

  • I don’t know why it’s adding the paragraph tags, a text field should not do that. A textare field will unless you select “no formatting”. There must be some filter on your site that is doing this. You need to deactivate other plugins and you might need to switch themes to see if you can figure out what might be causing it.

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

The topic ‘paragraph is added for the new version’ is closed to new replies.