WordPress.org

Ready to get started?Download WordPress

Forums

having sharethis show only within a post (4 posts)

  1. nihilfidei
    Member
    Posted 7 years ago #

    name: share this
    plugin: http://wordpress.org/extend/plugins/share-this/

    i want it to only show if the people are on the actual post page. and it would be nice if possible to be able to enter [sharethis] anywhere in the post and have it showup that way but thats wishful thinking. just having i show up inside the post instead of outside when your just previewing would be fine.

    any help will be appreciated

  2. MarkMichon
    Member
    Posted 7 years ago #

    What you want to do is wrap the sharethis calls inside an is_single if.

    <?php if (is_single()) { ?>
    Sharethis stuff
    <?php } ?>

    put whatever the sharethis tag is inside there.

    edit: oh and stop making the same post over and over again. People won't help you if you spam.

  3. nihilfidei
    Member
    Posted 7 years ago #

    oh sorry i didn't notice my last one existed i went back 20 pages i must of missed it. thanks again mark

  4. thegladiator
    Member
    Posted 6 years ago #

    <?php if (is_single()) { ?>
    Sharethis stuff
    <?php } ?>

    Can anyone tell me where to put this?? Please...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.