Shortcode & Unique Excerpts (4 posts)

  1. 65monroe@
    Posted 3 years ago #

    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.


  2. Saurabh Shukla
    Plugin Author

    Posted 3 years ago #


    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.


  3. 65monroe@
    Posted 3 years ago #

    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.

  4. Newfound
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • rtSocial
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.