WordPress.org

Forums

HARD PROBLEM: Mailchimp RSS Formatting (3 posts)

  1. nickaster
    Member
    Posted 2 years ago #

    Okay.... Complicated question for an RSS expert...

    So, I've got a daily Mailchimp newsletter that send the latest headlines from my blog out via email. It took me a really long time to figure out how to format my RSS feed in a way that would include things like an image in every post. It's awesome.

    One thing that's still driving me nuts - how to link the author's name to their author page on my site.

    In my current RSS there I have this in every <item>

    <dc:creator><?php the_author() ?></dc:creator>

    This pulls the name or the Author (obviously) which mailchimp seems to understand using the shortcode "*|RSSITEM:AUTHOR|*"

    Trouble is, if i hack my RSS to look like this:

    <dc:creator><?php $author_url = get_the_author_url(); if( $author_url == '' ) the_author_posts_link(); else the_author_link(); ?></dc:creator>

    Then I get a nice HTML url in the RSS, but Mailchimp's merge tags seem to strip the HTML and I still just get the author's name.

    Anyone know a clever way around this?

  2. dondilbert
    Member
    Posted 2 years ago #

    Did you manage to solve this I'm having the same problem.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Please post your own topic in the relevant dedicated forum for Mailchimp.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags