infnit
Forum Replies Created
-
Forum: Plugins
In reply to: Gravatar is “Posts” ?Thanks, but Ive already set up everyone with their ava1, 2 etc and they also think its better
It works by the way for anyone who wants to use it π
Forum: Plugins
In reply to: Gravatar is “Posts” ?Sorry didn’t work gave me an unexpected “{” error
Forum: Plugins
In reply to: Gravatar is “Posts” ?:O O……Ill try that π
Forum: Plugins
In reply to: Gravatar is “Posts” ?YAY got it!!!!
Just had to go <img src=”wp-content/gravatars/<?php the_author_ID(); ?>ava.gif” class=”gravatar” alt=”gravatar />And then just save the gravatars as the authors id ava.gif
For example admin is 1ava.gif
I know it’s not the best but it works π
Forum: Plugins
In reply to: Gravatar is “Posts” ?Anyone can help?
Forum: Plugins
In reply to: Gravatar is “Posts” ?Sorry gave this error
Parse error: parse error, unexpected ‘?’ in /…/index.php on line 11
Used this code btw
<img class=”gravatar” src=”<?php gravatar(the_author_email()); ? >” alt=”Gravatar” />
Forum: Plugins
In reply to: Gravatar is “Posts” ?Grr. my host is really annoying! I keep getting “The operation timed out”
Forum: Plugins
In reply to: Gravatar is “Posts” ?nope will now π
Forum: Plugins
In reply to: Gravatar is “Posts” ?The idea is I want to show a gravatar. The code to show it is
<img src=”<?php gravatar(name@domain.com); ?>” alt=”altag” />
Now to display the author’s email address in WP is <?php the_author_email() ?> so in essence I must put
<img src=”<?php gravatar(<?php the_author_email() ?>); ?>” alt=”altag” />
For the gravatar of each author to show which as lawtai said won’t work. Anyone got any solutions? Im using Skippy.net’s Gravatar 1.8 Plug-in
THIS IS MY CURRENT CODE:
<?php
get_header();
?><?php if (have_posts()) : while (have_posts()) : the_post();
$email = ‘echo gravatar(the_author_email);’;
?><div class=”post”>
<h3 class=”storytitle” id=”post-<?php the_ID(); ?>”><img class=”gravatar” src=”<?php gravatar($email) ?>” alt=”Gravatar” />” rel=”bookmark”><?php the_title(); ?></h3>
<div class=”meta”>
<?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> — <?php the_author() ?> at <?php the_time(‘g:i a’) ?> on <?php the_time(‘l, F j, Y’) ?> <?php edit_post_link(__(‘Edit This’)); ?></div><div class=”storycontent”>
<?php the_content(__(‘(Read on …)’)); ?>
</div><div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</div><!–
<?php trackback_rdf(); ?>
–></div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?><?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?>
<?php get_footer(); ?>
Forum: Themes and Templates
In reply to: Have a piece of code only on the home pageHad to add a page.php file – Thanks π
Forum: Themes and Templates
In reply to: Have a piece of code only on the home pageDidnt work π
Forum: Themes and Templates
In reply to: Have a piece of code only on the home pageIll try, tell ya if it works
Forum: Themes and Templates
In reply to: Have a piece of code only on the home pageO,so how do I add these extra pages?