• nickaster

    (@nickaster)


    Hi – I am trying to display the Author of my posts in a custom RSS feed. I am using this code:

    <author><?php the_author_posts_link(); ?></author>

    But all that spits out is:

    <author><a href="http://www.triplepundit.com/author/" title="Posts by "></a></author>

    What is the right PHP to just show the person’s name?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nickaster

    (@nickaster)

    This can’t possibly be difficult? Anyone know the PHP/WP?

    Thread Starter nickaster

    (@nickaster)

    Again, this can’t possibly be hard…. I just need the php to pull the author’s name, doesn’t even have to be a link!

    Thread Starter nickaster

    (@nickaster)

    I’m trying it like this:

    <author><?php the_author() ?></author>

    But that displays nothing. What do I need to do?

    Thread Starter nickaster

    (@nickaster)

    A land of nothingness? I’ve also seen this concept:

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

    But that nukes the feed. Does nobody know some php to do this?

    Thread Starter nickaster

    (@nickaster)

    For the record, if I put:

    <author>FOO</author>

    in the feed, then it works. So the problem is some of the wordpress PHP, not the fee structure as far as I can tell.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Displayint Author in RSS feed’ is closed to new replies.