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 1 year, 7 months ago.

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

    makinghomebase
    Participant
    Post count: 1

    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
    Post count: 1573

    You need to wrap your output in conditional tags.


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

    #14720

    braddalton
    Participant
    Post count: 9415

    Here’s an example:
    [php]
    <?php if (is_single() ) { ?>
    <p>HTML-Goes-Here</p>
    <?php } ?>
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.