WordPress Question - Moving Comments to Sidebar

Discussion in 'WordPress' started by Pacific Publishing, May 24, 2008.

  1. #1
    How can I move the "Recent Comments" from the bottom of the page to the Sidebar? ObsessionFitness.com

    I put this code in the sidebar but it caused most of the page content to disappear.

    <h3>Recent Comments</h3>
    <?php src_simple_recent_comments(7,85, '', '') ?>
     
    Pacific Publishing, May 24, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Does it do the same thing when you remove the arguments from the tag?
     
    mizaks, May 25, 2008 IP
  3. Pacific Publishing

    Pacific Publishing Banned

    Messages:
    330
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes it does. When I use it without arguments:

    <?php src_simple_recent_comments(); ?>

    I get this error message:

    Fatal error: Call to undefined function: src_simple_recent_comments() in /home/content/o/f/s/ofsschone/html/wp-content/themes/abstractia-10/sidebar.php on line 32

    Thanks.
     
    Pacific Publishing, May 25, 2008 IP
  4. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #4
    <?php include (TEMPLATEPATH . '/simple_recent_comments.php'); ?>
    Code (markup):
    needs to be called prior to the tag being called. Find out where it is in your theme (if it isn't in your header.php, put it there).
     
    mizaks, May 25, 2008 IP