Support » Themes and Templates » Placing the “Read More” link in a div outside the post?

  • Alright, I’m working on converting a design over to a wordpress theme, and I’m down to my final obstacle. I don’t know if it is possible, but is it a possibility to place the “Read more” type link from the <1– more –> tag somewhere other than the bottom of the post? What wordpress tag controls this if it is possible? I’d like to be able to customise the placement of this link…

Viewing 1 replies (of 1 total)
  • In your template that formats the page, you’ll have something like:

    <?php the_content('Read more'); ?>

    I had a similar situation where I didn’t want the ‘Read more’ to show up in the post, but in the footer of the post. So, I changed it to:

    <?php the_content(''); ?>

    And in my footer in my template page, I put this

    <div class="post_meta"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read more</a></div>

    This allows you to put the ‘Read more’ wherever you want since you can define the attributes of the class. This is just how I handled it, and there may be other/easier ways to do it, but it got the job done for me.

Viewing 1 replies (of 1 total)
  • The topic ‘Placing the “Read More” link in a div outside the post?’ is closed to new replies.