Support » Plugin: Sociable » sociable_html() function no longer in Sociable for WordPress 3.0 ?
6 years, 2 months ago
I’m using v5.13 and the sociable_html() function doesn’t work like it used to in previous non WP 3.0 versions.
I did a search through all the plugin’s code and can’t find the function anywhere – has it been removed/renamed?
I took a further look into the code, seems it’s been changed to use classes. I fixed by changing this:
<?php if(function_exists('sociable_html')) echo sociable_html(); ?>
<?php if(method_exists($sociable,'get_links')) echo $sociable->get_links(); ?>
This should be documented somewhere.
Where was this that you changed these?
In my WP template where I wanted the sociable links to appear (this method allows you to specify the exact position, not just the default end of post)
Thanks so much joesmalley!
Hi, quick question, is $sociable defined globally somewhere or you define it yourself and if yes how, because i’m getting an undefined variable error
EDIT: nevermind i just tried the sociable_html() function and it works on the latest wordpress version