• Resolved Anticosti

    (@anticosti)


    Greetings,

    I have done so much googling, trying to find an email template that would behave nice on gmail ios… When I realized that your Default template was the one who was behaving the best and… right out the box. 🙂

    Now, I am working on a custom template based on your Default template.
    In my case I would need to strip out the <p> and </p> generated in the excerpts. This will allow me to make the image left aligned and get the Titles and Excerpts flow around the image.

    <?php if (isset($theme_options['theme_excerpts'])) newsletter_the_excerpt ($post); ?>

    How could I edit the above line?

    Kind regards,

    Yves

    https://wordpress.org/plugins/newsletter/

Viewing 1 replies (of 1 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    The P tag is added by WordPress. You should use get_the_excerpt() which returns the exceprt instead of printing it and probably without the P tag. Eventually use the strip_tags on that returned string.

Viewing 1 replies (of 1 total)
  • The topic ‘Need to strip out the p tags from excerpts’ is closed to new replies.