Hej.
Er ved at bygge min egen side op. har nu fundet dette "Plugin - User Photo". Men fatter ikke en lyd af, hvordan jeg sætter linier ind. Tillader mig at sætte index.php her..
--------------------------------------------------------------------------------------
<?php get_header();?>
<div id="main">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="postmeta"><?php the_author_posts_link() ?> on <?php the_time('M jS Y') ?> at <?php the_time();?> <?php edit_post_link(__('Edit This')); ?><?php the_category(',') ?> <?php if(function_exists('the_views')) { the_views(); } ?></p>
<h2 class="title">" rel="bookmark"><?php the_title(); ?></h2>
<div class="entry">
<?php the_content(__('Continue Reading »')); ?>
<?php wp_link_pages(); ?>
<p class="post-tags">
<?php if (function_exists('the_tags')) the_tags('Tags: ', ', ', '
'); ?>
</p>
</div>
<p class="posted"><span class="comments"><?php comments_number(__('No responses yet'), __('One response so far'), __('% responses so far')); ?></span></p>
</div>
<?php comments_template();?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar();?>
<?php get_footer();?>
--------------------------------------------------------------------------------------
Her følger så noget af teksten fra plugin.
"* userphoto_the_author_photo()
* userphoto_the_author_thumbnail()
* userphoto_comment_author_photo()
* userphoto_comment_author_thumbnail()
The first two should be placed in the posts loop near the_author(), and the second two in the comments
loop near comment_author() (or their respective equivalents). Furthermore, userphoto_the_author_photo()
and userphoto_the_author_thumbnail() may be called anywhere (i.e. sidebar) if $authordata is set.
The output of these template tags may be modified by passing four parameters: $before, $after,
$attributes, and $default_src, as in: userphoto_the_author_photo($before, $after, $attributes, $default_src).
If the user photo exists (or $default_src is supplied), then the text provided in the $before and $after parameters is respectively
prefixed and suffixed to the generated img tag (a common pattern in WordPress). If attributes are provided in the $attributes
parameter, then they are returned as attributes of the generated img element. For example: userphoto_the_author_photo('', '', array(style => 'border:0'))
Hvordan skal jeg sætte det ind og op.
not a support question