sociable_html() function no longer in Sociable for WordPress 3.0 ? (6 posts)

  1. joesmalley
    Posted 4 years 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?

  2. joesmalley
    Posted 4 years ago #

    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.

  3. russianworm
    Posted 4 years ago #

    Where was this that you changed these?

  4. joesmalley
    Posted 4 years ago #

    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)

  5. Litso
    Posted 4 years ago #

    Thanks so much joesmalley!

  6. l2succes
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sociable
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic