WordPress.org

Ready to get started?Download WordPress

Forums

rtSocial
Shortcode & Unique Excerpts (4 posts)

  1. 65monroe@
    Member
    Posted 1 year 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.

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

  2. Saurabh Shukla
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. 65monroe@
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.