Forums

Wordpress 2.0 email author (2 posts)

  1. lovequittingsmoking
    Member
    Posted 2 years ago #

    Hi,
    I use feedburner's feedflare and would like "email author" to appear - but it does not.
    This requires my email address to be encoded with the feed.

    How do I make that happen?

    I do have the author chosen and included an email address for posts.
    But this isn't working either.

    What code do I have to add and where to make this work?

    Thanks so much.

    Happy Holidays

    All the Best,
    Joey Keim

  2. Kafkaesqui
    Moderator
    Posted 2 years ago #

    You'd have to add the author sub-element (tag) yourself to the RSS2 script: wp-rss2.php. This is found in your blog's root directory. Under the <item> element you'll find this:

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

    Modify it to:

    <dc:creator><?php the_author() ?></dc:creator>
    <author><?php the_author_email(); ?></author>
    <?php the_category_rss() ?>

    Notes:

    To protect yourself when editing core WordPress files, make backups of the files you are editing, and comment your changes for future reference.

    The reason the author sub-element is not a part of the RSS2 script by default is because of concerns over email address harvesting for spam use. Something to keep in mind when making email addresses public.

Topic Closed

This topic has been closed to new replies.

About this Topic