Support » Plugin: WP Easy Post Mailer » Link to the post into the newsletter

  • Resolved flor27


    Hi all,

    In a custom WP Mailer template, I only want to display post title and a link to it. I did it as following :

    [...]<div class="entry">
                                    <h2><?php the_title(); ?></h2>
                                    <p><a href="<?php get_permalink(); ?>">Read the article</a></p>

    The Blog’s title is displayed but the link’s URL is empty on received newsletter.

    How can I get the article’s permalink in the newsletter ?

    Many thanks

Viewing 1 replies (of 1 total)
  • Thread Starter flor27


    OK I’ve found how to :

    <p><a href="<? print(esc_url( get_permalink( ) ) ); ?>">Read the article</a></p>

Viewing 1 replies (of 1 total)
  • The topic ‘Link to the post into the newsletter’ is closed to new replies.