WordPress.org

Ready to get started?Download WordPress

Forums

WP Socializer
[resolved] Manual Placement Code (4 posts)

  1. filmmakerdream
    Member
    Posted 2 years ago #

    I am placing the small social icons (socialbts) manually in the excerpt of my website - http://www.cochlearimplantonline.com because the plugin is not putting them automatically when I click to include them in the excerpt. When I insert the code:

    <?php echo wp_socializer(button_name, array(
    'socialbts' => facebook,twitter,pinterest,googlebuzz,stumbleupon,addtofavorites,email
    'var2' => value,
    'var3' => value
    ));
    ?>

    It only shows the facebook icon. Can someone please tell me what I am doing wrong? For now, I have it set to default, but I would really like to choose my own buttons. Thank you.

    http://wordpress.org/extend/plugins/wp-socializer/

  2. vaakash
    Member
    Plugin Author

    Posted 2 years ago #

    You are using the wrong parameters for the function. The actual code is

    <?php echo wp_socializer('socialbts', array(
    'services' => 'facebook,twitter,pinterest,googlebuzz,stumbleupon,addtofavorites,email'
    ));
    ?>

    This should work. For more info refer the documentation page - http://www.aakashweb.com/docs/wp-socializer-docs/function-reference/

  3. filmmakerdream
    Member
    Posted 2 years ago #

    Thank you! It worked!

  4. vaakash
    Member
    Plugin Author

    Posted 2 years ago #

    For more customization on the social buttons, you can use the docs page to check out the parameters. Just add it the similar way.

    http://www.aakashweb.com/docs/wp-socializer-docs/function-reference/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic