WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just install Wordpress 3, and I can't figure out how to put an atom link in the sidebar, under (or otherwise near) the RSS links. I looked at sidebar.php, but it simply references a meta 'widget', and I can't figure out how to modify or configure this widget (or any widget for that matter). Can somebody guide me as to how to enable atom feeds?

share|improve this question
The title of this should be changed to "How can I link to the Atom feed for my site?". Atom doesn't need to be 'enabled', you just need to link to it. The answer by Sorich87 is correct and shows how to create a link to your Atom feed as well as how to modify the Meta widget specifically. – jeremyclarke Sep 11 '10 at 21:04

You can use the wp_meta hook:

function extend_meta() {
    echo '<li><a href="' . get_bloginfo('atom_url') . '" title="' . esc_attr( __( 'Syndicate this site using Atom' ) ) . '">' . __('Entries Atom Feed') . '</a></li>';

add_action( 'wp_meta', 'extend_meta' );
share|improve this answer
Great answer, I didn't know this was possible. Worthy of note is the get_bloginfo('atom_url') which gets the actual Atom url (and is the part Tristan most needed to know). To output the url directly (say in your sidebar.php file) you can use bloginfo('atom_url') without the 'get_' part. – jeremyclarke Sep 11 '10 at 21:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.