WordPress.org

Forums

Subscribe2
[resolved] subscribe2 query string (5 posts)

  1. tshop
    Member
    Posted 8 months ago #

    I'm trying to attach a query string to a Message substitution in the email template of subscribe2 for tracking but it doesn't seem to work. Is this possible to do?

    https://wordpress.org/plugins/subscribe2/

  2. mattyrob
    Member
    Posted 8 months ago #

    @tshop,

    Did you see the Tracking Parameters box at the bottom of the Email Settings tab in Subscribe2->Settings?

  3. tshop
    Member
    Posted 8 months ago #

    isn't this just for the {PERMALINK}? As I need to add it to {TITLE} as well.

  4. mattyrob
    Member
    Posted 8 months ago #

    @tshop,

    Is this for per-post emails? If so you'll need to find the following line in the classes/class-s2-core.php file:

    $this->post_title = '<a href="' . get_permalink( $post->ID ) . '">' . html_entity_decode( __( $post->post_title ), ENT_QUOTES ) . '</a>';

    And change it to:

    $this->post_title = '<a href="' . $this->get_tracking_link( get_permalink( $post->ID ) ) . '">' . html_entity_decode( __( $post->post_title ), ENT_QUOTES ) . '</a>';

  5. tshop
    Member
    Posted 8 months ago #

    This code worked.

    Thanks

Reply

You must log in to post.

About this Plugin

  • Subscribe2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic