Title: Suggestion: php function
Last modified: December 7, 2016

---

# Suggestion: php function

 *  [Georgio](https://wordpress.org/support/users/georgio-1/)
 * (@georgio-1)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/suggestion-php-function/)
 * Hi [@osdwebdev](https://wordpress.org/support/users/osdwebdev/)
 * Your plugin is very useful generally, except in some cases. For example, I use
   [WP Ideastream](https://wordpress.org/plugins/wp-idea-stream/) and its post-type
   is recognized but NOT in buddypress groups.
 * Are you planning to give us a php function to insert in templates?
 * The shortcode is useless in my case, because the idea-posts will be written by
   the group users and not by me. And users like sharing things by clicking buttons
   and not by writing code.
 * While it is one of the best plugins for sharing and I like it very much, this
   limitation is a real problem for me.
 * Regards

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

 *  Plugin Author [osdwebdev](https://wordpress.org/support/users/osdwebdev/)
 * (@osdwebdev)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/suggestion-php-function/#post-8525961)
 * Georgio, we are unfortunately unfamiliar with Buddypress. As it stands, OSD SMS
   is able to be put on any public post type. It seems like buddypress is restricting
   some content editing based on a permission level.
 * As a side note, you can include OSD SMS in your template code by using the following:
 * echo do_shortcode(“[osd_social_media_sharing]”);
    -  This reply was modified 9 years, 5 months ago by [osdwebdev](https://wordpress.org/support/users/osdwebdev/).
 *  Thread Starter [Georgio](https://wordpress.org/support/users/georgio-1/)
 * (@georgio-1)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/suggestion-php-function/#post-8531300)
 * Yeah, with a small change (single mark quotes) it works in templates:
    `<?php
   echo do_shortcode('[osd_social_media_sharing]'); ?>`
 * I think you can propose this code officially. Many developers of other sharing
   plugins propose code for templates and now you can do it you too. Thank you very
   much.
 *  Plugin Author [osdwebdev](https://wordpress.org/support/users/osdwebdev/)
 * (@osdwebdev)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/suggestion-php-function/#post-8531578)
 * Georgia,
 * I’m glad this solution worked for you. Thanks for using OSD SMS!

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

The topic ‘Suggestion: php function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/osd-social-media-sharing_964078.svg)
 * [OSD Social Media Sharing](https://wordpress.org/plugins/osd-social-media-sharing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/osd-social-media-sharing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/osd-social-media-sharing/)
 * [Active Topics](https://wordpress.org/support/plugin/osd-social-media-sharing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/osd-social-media-sharing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/osd-social-media-sharing/reviews/)

## Tags

 * [php function](https://wordpress.org/support/topic-tag/php-function/)

 * 3 replies
 * 2 participants
 * Last reply from: [osdwebdev](https://wordpress.org/support/users/osdwebdev/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/suggestion-php-function/#post-8531578)
 * Status: not a support question