Title: Shortcode functionality
Last modified: April 3, 2017

---

# Shortcode functionality

 *  [wekhter](https://wordpress.org/support/users/wekhter/)
 * (@wekhter)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/shortcode-functionality-2/)
 * First of all, I wanted to say I quite like the plugin overall. I think you should
   add more information about the shortcode to the readme/FAQ as right now you have
   to read through the actual code to know how to use the shortcode.
 * Unfortunately I was expecting something a little different from the shortcode.
   Right now, it’s set up so that if you don’t have the share buttons enabled on
   a post/page (like the float left/right buttons) then you can’t use the shortcode.
 * I was hoping to be able to use the shortcode on pages that didn’t already have
   the floating sharebar–the floating bar seems appropriate for things like blog
   posts, but is not appropriate for all site pages.
 * It would also be nice to be able to define (in the shortcode) a different URL
   to be shared. For instance, when we have something like a freebie giveaway thank
   you page, the share buttons would make more sense sharing either the giveaway
   signup page or the homepage–not the thank you page itself!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Freitas Victor](https://wordpress.org/support/users/victorfreitas/)
 * (@victorfreitas)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/shortcode-functionality-2/#post-8988856)
 * Hi [@wekhter](https://wordpress.org/support/users/wekhter/),
 * Thanks for the feedback, we really need to improve the shortcode option.
 * The plugin has support for widgets, so it may be useful for you to use.
    Today
   it is not possible to define the fixed position layout via shortcode or widget.
 * If you use the plugin only through a shortcode, you do not need to enable the
   options (Before or After content), but you must enable the page type options.
 * There is a filter `wpusb_is_active` with value (true or false), that can be used
   via backend if it is a programmer.
 * We are always working with the help of everyone via feedbacks, to solve the problems
   pointed out and we are improving more and more.
 * I will be testing your shortcode improvements and as soon as possible, I will
   inform you about the availability of these improvements and new options.
 * Here are the options that can be used via shortcode.
 * CSS class not accept special characters or space.
 *     ```
       'class_first'    => '', CSS class
       'class_second'   => '', CSS class
       'class_link'     => '', CSS class
       'class_icon'     => '', CSS class
       'layout'         => '', Layout: default, buttons, rounded, square or square-plus
       'items'          => '', Social networks: Example: 'facebook, google'
       'url'            => '', URL for share, example: http://example.com
       'title'          => '', Title. Except Facebook or Google+.
       'header_title'   => '', Title above the buttons
       'remove_inside'  => '', Title in buttons: 1 or 0
       'remove_counter' => '', Share count: 1 or 0
       ```
   
 * Example of use:
 * `[wpusb class_first="my-class" items="facebook, twitter" url="http://example.
   com" title="My custom page"]`
 * Thank you!
    -  This reply was modified 9 years, 4 months ago by [Freitas Victor](https://wordpress.org/support/users/victorfreitas/).
 *  Thread Starter [wekhter](https://wordpress.org/support/users/wekhter/)
 * (@wekhter)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/shortcode-functionality-2/#post-8998540)
 * Oops! I wrote out a very long reply and then lost it.
 * 1) Thank you for letting me know the available shortcode attributes, url is what
   I was looking for! You should add that info to the plugin FAQ.
 * 2) Can you let me know how to apply the `wpusb_is_active` to specific pages? 
   If that filter is applied, will it enable only the shortcode functionality, or
   will it enable the share bar as well?
 * Finally, a suggestion: there are settings to define what post types you want 
   the buttons available on in both the general settings and the extra settings.
   It would be nice to be able to define in extra settings what post types share
   buttons can be defined on (whether by fixed layout OR shortcode) and then have
   on general settings what post types the buttons should appear on by default.
 * For instance: in extra settings, I define ‘post’ and ‘page’ as the post types
   on which share buttons are enabled. Then, in general settings, I choose a fixed
   layout and set ‘single’ as places the buttons are available. I do not set ‘page’
   as a place where buttons are available. Therefore, buttons show up in fixed layout
   on posts but not pages, and shortcodes are available on both posts and pages (
   even though the fixed layout does not appear on pages).
 * This is how it seems like it should work, but right now you can’t use a shortcode
   on a CPT unless it’s a “place available” even if that CPT is enabled in extra
   settings. It would be really great if the plugin could have that functionality!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode functionality’ is closed to new replies.

 * ![](https://ps.w.org/wpupper-share-buttons/assets/icon-256x256.png?rev=1375146)
 * [WPUpper Share Buttons](https://wordpress.org/plugins/wpupper-share-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpupper-share-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpupper-share-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/wpupper-share-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpupper-share-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpupper-share-buttons/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wekhter](https://wordpress.org/support/users/wekhter/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/shortcode-functionality-2/#post-8998540)
 * Status: not resolved