WordPress.org

Support

Support » Plugins and Hacks » rtSocial » Shortcode & Unique Excerpts

Shortcode & Unique Excerpts

  • My suggestion is support the shortcode so that you can insert these within the post with a simple shortcode: [rt_social_buttons]

    example code:

    function register_shortcodes(){
       add_shortcode('rt_social_buttons', 'rtsocial');
    }
    add_action( 'init', 'register_shortcodes');

    One other question is it possible to change the link included in the excerpt or the auto populate shared text? For example I am using these on a “thanks for signing up share with your friends confirmation page” so I would rather direct new traffic to the start of the sign up process.

    http://wordpress.org/extend/plugins/rtsocial/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saurabh Shukla

    @saurabhshukla

    Hi,

    The shortcode idea is good. We will consider it. The latter however is a request on the edge. It will complicate the plugin and take it away from being a simple, fast and efficient plugin.

    Regards.

    Ah understandable.

    I actually just went through and replaced all the get_permalink with get_post_meta($post->ID, ‘share’, true)
    and get_post_title with get_post_meta($post->ID, ‘share_title’, true)

    So it is getting the info from the custom fields.

    As it is only being used on a few pages have not noticed any speed differences.

    Newfound

    @precipitatejournal

    Yes, a shortcode would be great. Otherwise, I am stuck with Sharethis.. :/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode & Unique Excerpts’ is closed to new replies.
Skip to toolbar