WordPress.org

Ready to get started?Download WordPress

Forums

Simple Social Buttons
[resolved] Shortcodes?!?! (3 posts)

  1. olie480
    Member
    Posted 1 year ago #

    You can also use this plugin directly in your template by function <?php get_ssb([$order]); ?>, where $order is a string with args ( example: $order = "googleplus=1&fblike=2&twitter=3" ) or an array ( example: $order = array('googleplus' => 1, 'fblike' => 2, 'twitter' => 3) ). If you would like to hide a specified button, you should set order to "0".

    Ummm... no you can't do that, because that's not valid PHP..

    <?php
    $order = array('googleplus' => 1, 'fblike' => 2, 'twitter' => 3);
    get_ssb([$order]);
    ?>

    This does not work for me. Even my IDE is throwing an error about this statement.

    <?php get_ssb([$order]); ?>

    So how the heck do you use the template tags?!?!

    http://wordpress.org/extend/plugins/simple-social-buttons/

  2. wspencer
    Member
    Posted 10 months ago #

    You have to remove the [] around the $order variable. So something like this....

    get_ssb('twitter=1&fblike=2&googleplus=3');

  3. xradar
    Member
    Plugin Author

    Posted 10 months ago #

    @wspencer - this will fix problem, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.