• Resolved visakh911

    (@visakh911)


    Im using a page template in my theme.It displays recent posts by Post id.I would like to show the total social share count and social share button for each individual post in the template by using short code.Is there a way to pass the post id along with the shortcode.

    I want each of the individual posts to be shared from the page template and not he page url.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    You can’t pass Post ID but you can pass url that you can get from the post ID.

    Thread Starter visakh911

    (@visakh911)

    Thanks for the reply.
    How can I get the total share count for each post by post id?

    Plugin Author Heateor Support

    (@heateor)

    How can I get the total share count for each post by post id?

    Sorry, there isn’t any function for that. You can see the APIs serving share counts of social networks in the_champ_sharing_count function starting at line number 833 in wp-content/plugins/super-socializer/inc/social_sharing.php file and calculate the total counts yourself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pass post id to shortcode’ is closed to new replies.