Can you use the excerpt instead?
No I want to keep my excerpts for the search engine display text only, and also keep it pretty short, so I don’t want to use it as my post teaser text.
Thanks for the link alism, but I tried that solution and it breaks the content layout 🙁
I’m surprised there isn’t a plugin for wordpress which allows you to either write custom teaser text that don’t appear in the full post or just hide part of a text in the full post only!
If I wanted to use the excerpt, how would I do it? Do I need a plugin?
Thanks for your help!
Sorry for waking up this old thread.
Cheers, ronronmx…
Now we have a working solution using very simple shortcode.
add_shortcode('noteaser', 'shortcode_noteaser');
function shortcode_noteaser($atts, $content = null)
{
if (is_single()) return '';
else return do_shortcode($content);
}
Then in your post
[noteaser]
<p>Noticer mess-age</p>
[message text="you can run another shortcode inside noteaser shortcode"]
[/noteaser]
<!--more-->
It might help little for quick fix.*
~epsi
*note:
Dunno if shortcode is an elegant solution (politically correct).
I’m new in wordpress, and still confused about excerpt.
@epsi:
even easier:
the solution is in the codex – probably the most unread document in wordpress (lol)
http://codex.wordpress.org/Customizing_the_Read_More#Read_More_Techniques