Support » Plugin: Sharebar » [Plugin: Sharebar] Conditional share links?

  • I have 2 landingpages for my products, and both these products have seperate facebook and twitter pages.

    I want to present my visitors with follow and like links to these pages, but only on the page of the product TO the social page of the product.
    So I don’t want multiple facebook buttons on all pages, but only the relevant ones.

    I found out I can use shortcodes and conditional PHP for this, but I can’t get it to work.
    This is the code I found on the internet. is there anyone who can help me out?

    <?php if (is_page(’36’) ) { ?>
    page 36
    <?php }else if(is_page(’24’)){ ?>
    page 24
    <?php }else{ ?>
    other page
    <?php } ?>

    The problem with this is that it shows all the options, instead of only the one matching the statement

    http://wordpress.org/extend/plugins/sharebar/

  • The topic ‘[Plugin: Sharebar] Conditional share links?’ is closed to new replies.