WordPress.org

Ready to get started?Download WordPress

Forums

How to move category & date to bottom of posts (5 posts)

  1. thehealthyskeptic
    Member
    Posted 4 years ago #

    I'm using the Depo Skinny theme. I'd like to move the category, date and comments to the bottom of the post rather than the top. How do I do that?

    Here is the site: http://helothevizsla.com/

    Thanks.

  2. Dene
    Member
    Posted 4 years ago #

    He is adorable and your photos are great.

    From 'Appearance; Editor' select 'Single.php'

    Move :

    <p class="byline">In <?php the_category(', ') ?> on <?php the_time('j F Y') ?> <?php the_tags('tagged ', ', ', ''); ?> with <?php comments_number('no comments', '1 comment', '% comments'); ?></p>

    From right below the 'the_title' to below 'the_content'

    So Change:

    <div class="post">

    <h3><?php the_title(); ?><?php edit_post_link('Edit', '<span class="edit">', '</span>'); ?></h3>

    <p class="byline">In <?php the_category(', ') ?> on <?php the_time('j F Y') ?> <?php the_tags('tagged ', ', ', ''); ?> with <?php comments_number('no comments', '1 comment', '% comments'); ?></p>

    <?php the_content(); ?>

    </div><!-- end post -->

    to

    <div class="post">

    <h3><?php the_title(); ?><?php edit_post_link('Edit', '<span class="edit">', '</span>'); ?></h3>

    <?php the_content(); ?>

    <p class="byline">In <?php the_category(', ') ?> on <?php the_time('j F Y') ?> <?php the_tags('tagged ', ', ', ''); ?> with <?php comments_number('no comments', '1 comment', '% comments'); ?></p>

    </div><!-- end post -->

    You may also need to do the same to the 'archive.php'.

    Good luck

  3. thehealthyskeptic
    Member
    Posted 4 years ago #

    Thanks for your reply. I made the changes you suggested, but it didn't seem to work. Here's the code from single.php now:

    <div class="post">
    
    		<h3><?php the_title(); ?><?php edit_post_link('Edit', '<span class="edit">', '</span>'); ?></h3>
    
    		<?php the_content(); ?>
    
    <p class="byline">In <?php the_category(', ') ?> on <?php the_time('j F Y') ?> <?php the_tags('tagged ', ', ', ''); ?> with <?php comments_number('no comments', '1 comment', '% comments'); ?></p>
    
    		<br />
    
    	</div><!-- end post -->

    And here's the code from archive.php:

    <div class="post">
    
    		<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><?php edit_post_link('Edit', '<span class="edit">', '</span>'); ?></h3>
    
    		<?php the_excerpt() ?>
    
    <p class="byline">In <?php the_category(', ') ?> on
    		<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_time('j F Y') ?></a> <?php the_tags('tagged ', ', ', ''); ?> with <?php comments_popup_link('no comments', '1 comment', '% comments'); ?></p>
    
    	</div><!-- end post -->

    But if you look at the site it hasn't changed.

    ??

  4. Dene
    Member
    Posted 4 years ago #

    Looks like you got it to work. Well done. What was it?

  5. thehealthyskeptic
    Member
    Posted 4 years ago #

    Thanks for checking back. I had to change the index.php template as well.

Topic Closed

This topic has been closed to new replies.

About this Topic