• I had this in the wrong section before so I’m reposting here. I just need to know where in my index.php to put the coding. I’ve tried it in different places with no success. (Newly newbie so missing the obvious, I’m sure.)

    my site is https://www.startletheechoes.com
    i’m using wordpress 1.5
    safari 1.25
    os x 10.3

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You should be able to put it wherever you want it to appear. Typically people put it in their sidebar.php file. But you can put it anywhere I believe.

    Thread Starter nydramamama

    (@nydramamama)

    I’m referring to the coding that says:

    function c2c_get_recently_commented ($num_posts = 5,
    ????$format = ”

    • %comments_URL%
      %last_comment_date%
      %comments_fancy%
    • “,
      ????$categories = ”,
      ????$order = ‘DESC’,
      ????$offset = 0,
      ????$date_format = ‘m/d/Y h:i a’,
      ????$authors = ”,
      ????$include_passworded_posts = false)

      The installation instructions say that this should be put in the index.php file.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    That is the definition of the function, not the code to insert into your site templates. Look at the examples section of the plugin’s page, https://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/#examples

    What you’d be putting into your sidebar.php would be closer to:

    <ul>Recently Commented
    <?php c2c_get_recently_commented(); ?>
    </ul>

    The instructions were originally written for WP 1.2, but I’ve just updated it to mention sidebar.php instead.

    Thread Starter nydramamama

    (@nydramamama)

    Thanks! I knew I was missing something obvious.

    Newbie here too ??

    I’m still missing out on where to put the code for the function, and how?

    If I paste it into sidebar.php it simply gets typed out, and I’m screwed … does it go in there before the first DIV tag, after the last /DIV tag or some place else? And does it take PHP tags around it, and/or/and …. I’m lost ??

    Sorry to bug ya … but need help.

    Thread Starter nydramamama

    (@nydramamama)

    sanvig – i’m not really the one to help but i’ll try. first off, are you making sure to save after you paste the code? and are you pasting the code not the function?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘recent comments ? coffee2code plugin’ is closed to new replies.