Viewing 1 replies (of 1 total)
  • Plugin Author Tom Morton

    (@tm3909)

    Are you looking to show the social links of your overall site in the sidebar rather than post specific?

    WPSocialite relies on the WP loop to populate its data. In order to make it work outside the loop, you have to set the URL parameters.

    In order to accomplish what you need, use the following (template tag or shortcode, depending on how you set it up):

    $args = array(
        'size' => 'small', //choose which size buttons to display.
        'url' => 'https://wowlazymacros.com', //use this to override the url that is sent to WPSocialite. Not recommended to use in loop.
        'button_override' => 'facebook,twitter-share,twitter-follow,pinterest,linkedin,gplus,stumbleupon' //used to override buttons that are displayed. Add and remove as needed.
    );
    wpsocialite_markup( $args ); ?>

    [wpsocialite size="small" url="https://wowlazymacros.com" button_override="facebook,twitter-share,twitter-follow,pinterest,linkedin,gplus,stumbleupon"]

    Let me know if this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Home Page pulling last post URL’ is closed to new replies.