Exploding Garrmondo Weiner Interactive Swiss Army Penis

Exploding Garrmondo Weiner Interactive Swiss Army Penis (http://www.gamingforce.org/forums/index.php)
-   Help Desk (http://www.gamingforce.org/forums/forumdisplay.php?f=36)
-   -   A quick tweak on Wordpress (http://www.gamingforce.org/forums/showthread.php?t=8872)

Tawnee Van Pelt Jul 9, 2006 07:58 PM

A quick tweak on Wordpress
 
The post's author is circled en red:

http://img319.imageshack.us/img319/8411/scrr9si.jpg

I want it to be it a link to all the author's posts.

Here's the code:

Spoiler:

Code:

<?php get_header(); ?>

        <div id="content" class="narrowcolumn">

        <?php if (have_posts()) : ?>
               
                <?php while (have_posts()) : the_post(); ?>
                               
                        <div class="post" id="post-<?php the_ID(); ?>">
                                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace Permanente a <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                                <small><?php the_time('j \de F \de Y') ?>  | escrito por <?php the_author() ?> </small>
                               
                                <div class="entry">
                                        <?php the_content('Lee el resto de esta entrada &raquo;'); ?>
                                </div>
               
                                <p class="postmetadata">Publicado en <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Editar','','<strong>|</strong>'); ?>  <?php comments_popup_link('Sin Comentarios »', '1 Comentario »', '% Comentarios »'); ?></p>
                        </div>
       
                <?php endwhile; ?>

                <div class="navigation">
                        <div class="alignleft"><?php next_posts_link('&laquo; Entradas Anteriores') ?></div>
                        <div class="alignright"><?php previous_posts_link('Entradas Siguientes &raquo;') ?></div>
                </div>
               
        <?php else : ?>

                <h2 class="center">No Encontrado</h2>
                <p class="center">Lo siento, pero estás buscando algo que no está aquí.</p>
                <?php include (TEMPLATEPATH . "/searchform.php"); ?>

        <?php endif; ?>

        </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>


As you can see I'm a total PHP newbie. Any help is appreciated.

Duminas Jul 10, 2006 03:04 AM

See the line containing this code?
Code:

escrito por <?php the_author() ?>
You'll need to go into WordPress' code where it defines functions (I can't be much help since I've not played with the software) and alter the the_author() function to spit a link out instead of just the name.

Have you tried asking on WordPress' forums?


All times are GMT -5. The time now is 03:39 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.