• Resolved Miz.Michele

    (@mizmichele)


    I have an author.php page that I would like someone to help me modify.

    Currently, when the posts are displayed the excerpt of the post is displayed and I want to remove that portion. I just want the thumbnail and the title. I don;t even need the author on the portion since it’s the page.

    Can anyone help me with the coding and explain to me as well?

    I think it has to do with this part get_template_part('loop', 'entry') ?> but I am not sure.

    Author page is:
    https://www.lasvegasworldnews.com/author/miz-chellie/
    Code from author.php

    <?php get_header(); ?>
    <?php if (have_posts()) : ?>
    
    <div id="page-heading">
    		<?php
            if(isset($_GET['author_name'])) :
            $curauth = get_userdatabylogin($author_name);
            else :
            $curauth = get_userdata(intval($author));
            endif;
            ?>
    <h2>About: <?php echo $curauth->nickname; ?></h2>
    <div id="author-avatar"><br>
                            <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'gopress_author_bio_avatar_size', 60 ) ); ?><br>
                        </div><!-- #author-avatar --><br>
        <dl>
            <dd><?php echo $curauth->user_description; ?></dd>
        </dl>
    </div>
    <!-- END page-heading -->
    
    <div id="post" class="post clearfix">
    	<div id="archive">
    		<?php
            // get post entry
            get_template_part('loop', 'entry') ?>
            <?php pagination(); ?>
        </div>
    </div>
    <!-- END #post -->
    <?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Miz.MIchele,

    You can remove that section by creating a duplicate of the loop-entry.php file within your theme and naming it something like loop-author-entry.php. In your newly created file, delete any reference to <?php the_excerpt; ?>.

    Within the author.php file you have pasted above replace get_template_part('loop', 'entry') with get_template_part('loop', 'author-entry')

    Thread Starter Miz.Michele

    (@mizmichele)

    That sounds great. Thanks so much. I am going to try in now.

    Thread Starter Miz.Michele

    (@mizmichele)

    That worked perfectly. Thanks so much for explaining. I was even able to remove the thumbnail and author name.

    Awesome! Glad to help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Author page help’ is closed to new replies.