WordPress.org

Forums

Displaying only the Teaser on single.php (2 posts)

  1. Headshot
    Member
    Posted 7 years ago #

    Hi There,

    I was wondering how i can only show the teaser of a post on the single.php file.

    I have been searching the forums, and the documentation, but can't find anything.

    My setup is like this:

    <div id="teaser">
       //Show Teaser Here
    </div>
    
    <div id="info">
       //Just some content here
    </div>
    
    <div id="content">
       //Full article without teaser (allready found solution for this)
    </div>

    If anybody knows how to solve my problem, please let me know.

    Thanks for everybody who reads this post.

    Kind Regards,

    Headshot

  2. @mercime
    Volunteer Moderator
    Posted 7 years ago #

    Create Custom Fields for #teaser and #info content. For every post you make, add the custom field for #teaser and another one for #info.
    The Codex is your friend. Check out Custom Fields page for different solutions including plugins.
    Good luck.

Topic Closed

This topic has been closed to new replies.

About this Topic