WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Sociable plugin only on selected pages.

[Resolved] Sociable plugin only on selected pages.

  • 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)
  • still cant get this one to work, just not sure why its throwing an error.

    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; ?>

    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 ‘[Resolved] Sociable plugin only on selected pages.’ is closed to new replies.