hello all… can I make some text of “read more” not clickable?
For example, let’s say my post title is “Best Monitor”, and I want the read more text to be:
Continue reading Best Monitor
I can do that using this code:
<?php the_content("Continue reading " . the_title('<b><i>', '</b></i>', false)); ?>
Now, I need to seperate “Continue reading” to be just text only (not link) and the link only to “Best Monitor”.
I’ve seen a website doing this. How can I do that? Thank you very much.
hello snecz, sorry to bother you again… there’s just one little problem, when my post doesn’t have the <!–more–> tag, the “Read more” still shows… is there any way to make the “Read more” not showing up if the post have no <!–more–> tag?
thanks
snecz
August 30, 2011, 4:38pm
3
Don’t put it in an a element.
thanks, can you show me how to do it? because if not put it in the the_content() element, I don’t know how to make a “read more”.
thank you
snecz
August 31, 2011, 8:45am
5
Try with this code:
<?php the_content('',false,''); ?>
<div class="readmore">Read more <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','Influx'), get_the_title()) ?>"><?php _e(get_the_title(),'Influx'); ?></a></div>
thank you very much snecz, it really works!