• Resolved netbuddy34

    (@netbuddy34)


    Im using this code to try and get the sociable plugin only on selected pages, but I keep getting an error. Im putting this in page.php template.

    <?php if (is_page(array('Freebies', 'Basic Comparison', 'Advanced Comparison'))) {
    <?php if (function_exists('sociable_html')) {
      echo sociable_html();
    } ?> } ?>

    Not sure what the problem is, my php skills are pretty minimal lol.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter netbuddy34

    (@netbuddy34)

    still cant get this one to work, just not sure why its throwing an error.

    Thread Starter netbuddy34

    (@netbuddy34)

    Figured out the solution, just in case it helps anyone here it is.

    <?php if (is_page(array('Freebies', 'Basic Comparison', 'Advanced Comparison'))) : ?>
    <?php if (function_exists('sociable_html')) {
      echo sociable_html();
    } ?>
    <?php else : ?>
    <?php endif; ?>
    Joost de Valk

    (@joostdevalk)

    In 2.9.3 and up you have the option to disable Sociable on a per post basis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sociable plugin only on selected pages.’ is closed to new replies.