• Resolved ellyk55

    (@ellyk55)


    Hi, I coded a theme for WordPress, and also included the gravatars since 2.6 has it enabled without any plugins. But I tested my theme for an older version of WordPress (2.3) and the gravatar code that I used:

    <?php
       echo get_avatar( $comment, $size = '30', $default = '' );
       ?>

    Does not work since its an older version of WordPress.

    My question is, how can I get some sort of a statement to enable the line of code above to show up for versions of wordpress only 2.5 or above?

The topic ‘Gravatars with older versions’ is closed to new replies.