I'm building a theme that needs to have the "Read More" link placed outside of the post content. Right now my code looks like this:
<?php the_content('Read More'); ?>
Which results in this:
<p>The post content. <a href="..." class="more-link">Read More</a></p>
... but this is what I need:
<p>The post content.</p>
<a href="..." class="more-link">Read More</a>
I can't set more-link as a block element because I need it to float, which causes it to interact incorrectly with the paragraph content its contained in. I would prefer not to use the_excerpt unless I have to.
Is there maybe some way to do this in the theme's functions.php? Thanks for any help!