Conditional share links? (1 post)

  1. hakkow
    Posted 3 years ago #

    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


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.