WordPress.org

Support

Support » How-To and Troubleshooting » How to hide post teaser text from post?

How to hide post teaser text from post?

  • Hi, I have been looking around for a while but can’t find a solution.

    I use the “read more” on all my post to only show a teaser text on my home page. The problem is that teaser text is also displayed on the full post content.
    I want to hide the teaser text from the full post content, so that the post will actually start at the part “below” the read more tag.

    Is there a plugin that does that?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Michael

    @alchymyth

    Forum Moderator

    @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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide post teaser text from post?’ is closed to new replies.
Skip to toolbar