Simple Hooks How to avoid it coming up in post excerpts

Community Forums Forums General Discussion Simple Hooks How to avoid it coming up in post excerpts

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  braddalton 2 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13648

    makinghomebase
    Participant

    I’m trying to use Simple Hooks to add something to the bottom of my blog posts. Works great except for it shows up under each post excerpt as well. Is there away to keep it on each blog post but hide it on the excerpts?

    #14685

    SoZo
    Moderator

    You need to wrap your output in conditional tags.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #14720

    braddalton
    Participant

    Here’s an example:

    <?php if (is_single() ) { ?>
    <p>HTML-Goes-Here</p>
    <?php } ?>
    

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.