NGFB Shortcode for Sharing Buttons

You can add one or more social sharing buttons to your content by using the [ngfb] shortcode anywhere in the content text.

Make sure the NGFB > Advanced > WP / Theme Integration > Enable Plugin Shortcode(s) option is enabled, or the shortcode will be ignored. ;-)

Example:

You may use several arguments:

buttons
A list of buttons to include, as shown in the example above. You must include at least one button name.
use_post
false, true, or a specific post ID to share.

  • false = Use the WordPress query to determine the post ID (default).
  • true = Use the WordPress $post object to determine the post ID.
  • # = Use a specific post ID number.
url
A specific URL to share, instead of the current webpage or Post URL.
pid
A picture / image ID to share for the Pinterest and Tumblr buttons. NextGEN Gallery picture IDs must be in the form of ‘ngg-#’ (for example: pid="ngg-123").
photo
A specific photo / image URL to share for the Pinterest and Tumblr buttons. The photo argument takes precedence over the pid argument.
css_class
A CSS class name to wrap the shortcode buttons.
filter_id
A custom filter id that can be used to modify the default options filter name. The default filter id is “shortcode” and the resulting complete filter name is wpsso_sharing_html_shortcode_options. You can hook into this filter to modify the NGFB options before the plugin generates the shortcode buttons HTML.
preset_id
The id of a button preset to apply – for example, “large_share_vertical” or “small_share_count”. The default is to use the preset value from the NGFB Buttons settings page.