ThemeShaper Forums » Thematic

Feedburner in Functions

(2 posts)
  • Started 14 years ago by patdryburgh
  • Latest reply from patdryburgh
  • This topic is resolved
  1. Hey everyone,

    I am attempting to add my feedburner flare code to my child theme through a function. Here's what it looks like:


    global $post, $authordata;
    $postfooter .= '<script src="http://feeds.feedburner.com/~s/patdryburgh?i=';
    $postfooter .= the_permalink();
    $postfooter .= '" type="text/javascript" charset="utf-8"></script>';
    echo apply_filters( 'brown_postfooter', $postfooter );

    What am I not doing right here? The permalink seems to go before the top and bottom parts. Suggestions?
    Thanks!

    Posted 14 years ago #
  2. Figured it out.


    global $post, $authordata;
    $postfooter = '<script src="http://feeds.feedburner.com/~s/patdryburgh?i=';
    $postfooter .= get_permalink();
    $postfooter .= '" type="text/javascript" charset="utf-8"></script>';
    echo apply_filters( 'brown_postfooter', $postfooter );

    Note the use of "get_permalink()" instead of "the_permalink()" as feedburner provides.

    Posted 14 years ago #

RSS feed for this topic

Reply

You must log in to post.