WordPress.org

Ready to get started?Download WordPress

Forums

Socialize This
[resolved] Two different widget bars? (2 posts)

  1. literayz
    Member
    Posted 3 years ago #

    Is there anyway to assign specifically which widgets(links) are called into the template using the template tag provided with Socialize This?

    <?php show_social_widgets(); ?>

    I need a group of social sharing icons in my footer but I also need a set of social profile icons in the primary sidebar. The two types may have similar icons but serve different functions and can't be in the same spot on the page or they may cause confusion.

    Anyone know how this can be done without editing plugin core?

    http://wordpress.org/extend/plugins/socialize-this/

  2. Mike Rogers
    Member
    Plugin Author

    Posted 3 years ago #

    Yeah, there is :)

    In the show_social_widgets() function, the first attribute you can input is a widget IDs limiter. So for example

    show_social_widgets(array(1,3,4));

    would output the widgets with the ID's 1,3,4.

    To find out the ID's of a widget, click "edit" on the social widgets page and the ID is in the url ie
    wp-admin/options-general.php?page=socialize-this&module=edit_widget&widget=28 < the 28 is the widgets ID.

    Sorry if this is a little poorly explained, as I am a little tight for time right now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic