• Resolved hunden

    (@hunden)


    Hi,

    If I click on my RSS Feed link, it doesn’t work. This is what is displays when the link is clicked:

    Warning: Cannot modify header information - headers already sent by (output started at /home/pettur8/public_html/wordpress/wp-content/themes/pet-portraits/functions.php:420) in /home/pettur8/public_html/wordpress/wp-includes/feed-rss2-comments.php on line 8
    http://www.pet-art.net/wordpress/?p=567 Sun, 24 Jan 2010 13:53:10 +0000 http://wordpress.org/?v=abc

    Is there something I can do about this? I would really like to display a RSS Feed button on the sidebar.

    Thanks for any help I can get.

    Best,
    Katja

Viewing 5 replies - 1 through 5 (of 5 total)
  • try switching to default theme and test to rule out theme issues

    Thread Starter hunden

    (@hunden)

    This has something to do with the social buttons I added to the blog today. Probably I did something wrong because I can’t see the admin, rss feed and if someone writes a comment it’s like it it doesn’t work.

    I added this code to the bottom of my functions.php to be able to display the social sharing buttons on the bottom of each post:

    <?php function custom_social_media_links() { ?>
    <div id="custom_social_media_links">
    <div id="social_media_opening_line">Share this post:</div>
    <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" target="blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/facebook.jpg" alt="Share this article on Facebook" /></a> 
    
    <a href="http://twitter.com/home?status=<?php the_title(); ?> – <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/twitter.jpg" alt="Share this Article on Twitter" /></a> 
    
    <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/stumbleupon.jpg" alt="Add this Article to Stumbleupon" /></a> 
    
    <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/delicious.jpg" alt="Add this Article to Del.icio.us" /></a> 
    
    <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/digg.jpg" alt="Add this Article to Digg" /></a> 
    
    <a href="http://reddit.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/reddit.jpg" alt="Add this Article to Reddit" /></a> 
    
    <a href="http://www.myspace.com/Modules/PostTo/Pages/?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/myspace.jpg" alt="Add this Article to Myspace" /></a> 
    
    <a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink(); ?>&title=<?php the_title(); ?>&annotation=<?php the_excerpt(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/google.jpg" alt="Add this Article to Google" /></a>
    
    <a href="mailto:blank?body=I thought you might be interested in <?php the_title(); ?>. You can view it at: <?php the_permalink() ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/mail.jpg" alt="Tell a Friend" /></a>
    
    </div>
    <?php } ?>

    Did I write something wrong?

    Thread Starter hunden

    (@hunden)

    And I added this code to index.php:

    <div class="postcontent">
    <?php custom_social_media_links(); ?>
    </div>
    Thread Starter hunden

    (@hunden)

    someone?

    Thread Starter hunden

    (@hunden)

    I found the problem by myself,

    This was the right code:

    function custom_social_media_links() {
    ?>
    <div id="custom_social_media_links">
    <div id="social_media_opening_line">Share this post:</div>
    <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" target="blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/facebook.jpg" alt="Share this article on Facebook" /></a> 
    
    <a href="http://twitter.com/home?status=<?php the_title(); ?> – <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/twitter.jpg" alt="Share this Article on Twitter" /></a> 
    
    <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/stumbleupon.jpg" alt="Add this Article to Stumbleupon" /></a> 
    
    <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/delicious.jpg" alt="Add this Article to Del.icio.us" /></a> 
    
    <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/digg.jpg" alt="Add this Article to Digg" /></a> 
    
    <a href="http://reddit.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/reddit.jpg" alt="Add this Article to Reddit" /></a> 
    
    <a href="http://www.myspace.com/Modules/PostTo/Pages/?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/myspace.jpg" alt="Add this Article to Myspace" /></a> 
    
    <a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink(); ?>&title=<?php the_title(); ?>&annotation=<?php the_excerpt(); ?>" rel="nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/google.jpg" alt="Add this Article to Google" /></a>
    
    <a href="mailto:blank?body=I thought you might be interested in <?php the_title(); ?>. You can view it at: <?php the_permalink() ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/social/mail.jpg" alt="Tell a Friend" /></a>
    
    </div>
    <?php }

    Its funny I found it since I really don’t have a clue about PHP 🙂 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My RSS Feed doesn’t work’ is closed to new replies.