netbuddy34
Member
Posted 3 years ago #
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.
netbuddy34
Member
Posted 3 years ago #
still cant get this one to work, just not sure why its throwing an error.
netbuddy34
Member
Posted 3 years ago #
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