avenueapple-mac
Member
Posted 1 year ago #
Right now I have this code in my index.php:
<div class="postentry">
<?php the_content(sprintf(__('Continue reading ‘%s’ »', 'f2'), the_title('', '', false))); ?>
</div>
When I use the "more" button in my post, the text shows up in my post as...
Continue reading Title Of My Post
How can I make it to read simply "Read More..." or "Continue reading..." without the title of my post?
Indeedle
Member
Posted 1 year ago #
Take out the %s. The function replaces %s that with the title of your post, so you can change it to just 'Read more...' and it'll show up.
Eg:
<?php the_content(sprintf(__('Read More...', 'f2'), the_title('', '', false))); ?>
avenueapple-mac
Member
Posted 1 year ago #
Thanks, Indeedle! It works!
Indeedle
Member
Posted 1 year ago #
Reading the link would be better xD Because I didn't pay attention to what I was writing, and it had needless stuff in it.
<?php the_content(__('Read More...', 'f2')); ?>
avenueapple-mac
Member
Posted 1 year ago #