• I’m trying to edit one of the pages on my site: https://prommafia.com/author/admin/.

    I have a template called author.php and it is formatted exactly like the page, but when I make changes to the php page, none of the changes show up on the actual page at the url above. This makes me think that the author.php page is not the correct one to edit, but no other php page listed seems to be the right one.

    I’ve tried looking at the source code for the page to figure out what the edit, but I’m just not good enough with code to figure this out. Any help?

Viewing 1 replies (of 1 total)
  • Thread Starter prommafia

    (@prommafia)

    Here is the author.php code

    <?php get_header(); ?>
    
    <?php include(TEMPLATEPATH."/left.php");?>
    
       <div id="content" class="narrowcolumn">
    
    <div align="center"><?php profilepic_internal_imagetag($authid, 'align=center'); ?></div>
    <br /><br />
    
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>
    
    <h2><?php echo $curauth->nickname; ?></h2>
    <dl><br />
    <dt>Website</dt>
    <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
    <br />
    <dt>Bio</dt>
    <dd><?php echo $curauth->user_description; ?></dd>
    </dl>
    
    <br /><br />
    
    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2><br />
    <!-- The Loop -->
    <?php
    query_posts($query_string . '&showposts=-1');
    ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?></a>
    <div class="entry-summary">
    	<?php the_excerpt(); ?>
    </div>
    <?php the_category(',');?>
    <br /><br />
      <?php endwhile; else: ?>
         <p><?php _e('No posts by this author.'); ?></p>
    
    	<?php endif; ?>
    <!-- End Loop -->
    
    <br /><br />
    </div>
    
    <?php include(TEMPLATEPATH."/right.php");?>
    
    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Verify Template Page’ is closed to new replies.