Home > FAQs > WordPress Plugins > WP Socializer – FAQ > WP Socializer – Theme Functions

WP Socializer – Theme Functions

WP Socializer has about 11 theme functions, which can be used directly in the them file for custom placement of the buttons and template.

This page is updated, but more details are produced in this page. Please use this page for more detailed information on this topic.

The only one theme function for inserting the buttons and template in a custom place in the them is wp_socializer(‘Button / Template Name’, Settings);

This function requires a parameter to choose the required button or template. Those Parameters are mentioned below. The parameters are just similar to the button codes available for the placement template.

socialbts
Used to insert the social bookmarking buttons
addthis
Used to insert the Addthis button
sharethis
Used to insert the Sharethis button
buzz
Used to insert the Buzz button
retweet
Used to insert the Retweet button
digg
Used to insert the Digg button
facebook
Used to insert the Facebook like button
plusone
Used to insert the Google +1 button
reddit
Used to insert the Reddit button
stumbleupon
Used to insert the Stumbleupon button
custom-1
Used to insert the custom button template 1
custom-2
Used to insert the custom button template 2
template-1
Used to insert the template 1
template-2
Used to insert the template 2

To display the facebook button in a custom place, use the PHP code

if(function_exists('wp_socializer'){
	echo wp_socializer('facebook-like', array(Settings));
}

Here, the a check is made whether a function wp_socializer exists. This will not give a error when the plugin is disabled. Also, the function should be echoed

Related Posts

    None Found

Comments

  • Pingback: WP Socializer - Wordpress Plugin - Aakash Web

  • http://keithfullermusic.com keith

    i have no idea where i place this code. in my post.php file?

    do i have to use div tags and so forth?

    I’m dumb. sorry.

    • http://www.aakashweb.com Aakash Chakravarthy

      You should place this code in the “Placement tab”

      Just click the “Placement” tab at the top.
      Then you will see two “TEMPLATES” template 1 and template 2
      Place the button code you want in that template.

      Select the pages where you want to show.

      Select the position where the button should appear.

      Save the changes.

      You can also use HTML tags in the template

      Your button will appear in the post. This system is used because this will increase the customization. Thanks

  • http://keithfullermusic.com keith

    i have no idea where i place this code. in my post.php file?

    do i have to use div tags and so forth?

    I’m dumb. sorry.

    • http://www.aakashweb.com Aakash Chakravarthy

      You should place this code in the “Placement tab”

      Just click the “Placement” tab at the top.
      Then you will see two “TEMPLATES” template 1 and template 2
      Place the button code you want in that template.

      Select the pages where you want to show.

      Select the position where the button should appear.

      Save the changes.

      You can also use HTML tags in the template

      Your button will appear in the post. This system is used because this will increase the customization. Thanks

  • Chris

    So how do I get them to show up on certain pages and not other? I know it in the placement tab and I know I need to tell it which ones to exclude but what code do I put where?

    • http://www.aakashweb.com/ Aakash Chakravarthy

      You can exclude certain posts by disabling the templates in the post editing admin page. You will get a widget in the post editing page where you can disable the buttons for specific posts.

  • Cathy

    I wanted to add a custom “leave a comment” icon to style nicely with the other buttons provided. I provided the button and got it into the template. My template looks like this:
    {social-bts-32px} {custom-1}

    Question – can I somehow get my custom button styled with the ul list items that the first code is dislaying?

    2 – how do I use < ?php the_permalink();?>#comments to get to the comment list in the custom code? I dont think I can use php in the custom field.

    Thank you for your help!

    • http://www.aakashweb.com/ Aakash Chakravarthy

      You can’t put the custom code within the ul of the social buttons list. You should use <a href="#comments" >View Comments</a> either in the custom code template or in the template1/2 to get to the comment list

  • http://www.bajona.com Gerard

    Hey, I have a problem with the retweet button from WP Socializer, and perhaps you have the solution.
    If you click on the retweet button (meme) and you change the text (adding a hashtag, etc…) it is not counted as a retweet. Why? How can I fix that?

    Thanks and greetings!
    Gerard

    • http://www.aakashweb.com/ Aakash Chakravarthy

      When i checked your page, everything worked fine. If the problem occurs for you then it must be a problem with the retweet button only. As WP Socializer’s work is just to print the customized code.

      Anyway, i will find the problem still deeper.
      Regards

      • http://www.bajona.com Gerard

        Thanks, very kind of you. Now I’ve discovered that only goes wrong when I write a hashtag. I’ll look if there is anything wrong in tweetmeme options.

  • http://www.bajona.com Gerard

    Hey, I have a problem with the retweet button from WP Socializer, and perhaps you have the solution.
    If you click on the retweet button (meme) and you change the text (adding a hashtag, etc…) it is not counted as a retweet. Why? How can I fix that?

    Thanks and greetings!
    Gerard

  • http://www.robinbenedict.com/ Robin Benedict

    It’s very easy to placement using PHP..
    Thanks

  • Anonymous

    This is an AWESOME plugin! The only issue I have with it is that it inserts the buttons in a bulleted list. How can I make them line up horizontally?

  • Gil

    Hi Aakash!

    We love your plugin! Is there a way to have show up in a widget in the sidebar?
    THANKS
    Gil

    • http://www.aakashweb.com/ Aakash Chakravarthy

      thanks this feature will be implemented in the future version

  • http://twitter.com/appotw App of the Week

    Hi Aakash,

    Great work, love the WP Socializer plugin. However, when activated, the plugin makes my pages show only the excerpt of the page, which I don’t want for pages. So unfortunately I cannot use it. I have looked into the code of the plugin and saw that it looks for the excerpt of a page and when it isn’t there, it generates it anyway. Maybe you can look into this?

    • Acupo

      I’m having the same issue. Is there a solution to this?

    • http://affiliatescentury.com Carmelj

      Hi APP, I have the same situation. My Post is cut -off, and I can’t change it, The Thumbnail also is kicked out, it only go back to normal if you view individual post. But the link color disappeared, from maroon to black. How did you put back to normal?

  • Doe

    Hi, I’m totally new the wordpress. Is there anything I need to manually change in the theme? or I just need the plugin does it for me? thanks

    • http://www.aakashweb.com/ Aakash Chakravarthy

      no need to edit any files.. this is for advanced usage only. you can add the button from the admin page itself

  • MUHAMMAD SALMAN

    Hi very useful plugin ,
    I want to ask a question , is there a wat to add the buttons in the wordpress sidebar

    • http://www.aakashweb.com/ Aakash Chakravarthy

      The second release has this feature. So please stay in touch

  • http://affiliatescentury.com Carmelj

    Hi i’m sorry my Post in frontpage is cut off. This is the situation: In front page it is set to excerpts (5) and 1st post open full content. I set-up Socializer to show in frontpage, individual post etc….It shows in the frontpage but the first full-content post is cut-off into excerpt without the [...] instead the original full content. Now I unclick the Socializer fontpage setting, but the first full content remains an exceprts and I can’t make it open. I tried to off the computer, republish the post but it won’t go back to normal. How can I make it a full post in the front page.

    • http://www.aakashweb.com/ Aakash Chakravarthy

      This is a known issue. This is bug is being corrected

    • http://www.facebook.com/emil.andersson.skge Emil Andersson

      I had the same problem. I just opened up wp-socializer.php and searched “excerpt” and replaced all of these with a random word. Saved and replaced the file and it worked out great.

  • tzjab

    Thanks a lot for the plugin! A question: I’ve placed {facebook-share} on archive pages. No matter which post (excerpt) I want to share — FB always transmits the first on the page. Where have I gone wrong?

  • Enays1

    does the fb share button always have to ask me for the link i need to share ??

    • http://www.aakashweb.com/ Aakash Chakravarthy

      no, WPSR takes the URL automatically

  • Lroome

    we have this installed and on the dashboard there is the message “You should immediately adjust the settings”. My question is what settings? what do I need to adjust?

  • http://www.facebook.com/matthew.prindle Matthew Prindle

    Are there any shortcodes for this bad boy?! I am trying to make it show in a specific place in my content… PLEEEASE let me know if there is anyway to do this.Thanks in advanced!! :)

    • http://www.aakashweb.com/ Aakash Chakravarthy

      But this version.. does not have this feature.
      The 2nd one has this good one.
      You will get this version in a week…. please stay updated

      • http://www.facebook.com/matthew.prindle Matthew Prindle

        Awesome! Looking forward to it!! Thanks for such a sweeeet plugin!

  • Anonymous

    I have a custom loop in a custom page template, de facebook and twitter url to post is now the url of the page, and not the url of the item from the loop. How can I parse that url to wp_socializer in the loop? thanx

  • Pingback: WP Socializer review, discussions, does it work, and ratings on Loadwp.com | Loadwp.com

  • Homy

    I dont get anything, why and were do I use the code. Why do i have to use code anywere at all?

    • http://www.aakashweb.com/ Aakash Chakravarthy

      Go to the “Placement” tab and use the “Button codes” in the template. Thats all !!

  • Kishore

    Hi,

    I have tried calling the template -1 and it does not work it displays a error message like:

    Parse error: syntax error, unexpected ‘{‘ in /home/xxxxxx/xxxxxx/xxxxx/xxxx/xxxx/single.php on line 21
    what does it mean?

    how do i fix it?