Title: Shortcode and php function
Last modified: August 22, 2016

---

# Shortcode and php function

 *  Resolved [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/shortcode-and-php-function/)
 * Hello,
    I’ve read on the official page that there is a shortcode but I cannot
   find any information in the FAQ about it. Is there a possibility you give a php
   funtion for it – I plan to use your plugin in conjunction with S2Member so I 
   need a function to hide the widget to non member visitors ?
 * [https://wordpress.org/plugins/feature-a-page-widget/](https://wordpress.org/plugins/feature-a-page-widget/)

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

 *  Plugin Author [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/shortcode-and-php-function/#post-5359874)
 * I believe you’re referring to the feature request poll where the “added” date
   refers to when that request was added to the poll, not when the feature was added
   to the plugin. Sorry for the confusion!
 * Right now, there is no shortcode or output function that’s officially supported.
   You’re free to try to get [`the_widget()`](http://codex.wordpress.org/Function_Reference/the_widget)
   working or use a plugin like [Widgets on Pages](https://wordpress.org/plugins/widgets-on-pages/).
   Neither is officially supported, but I know at least some people have had success
   with the latter. I haven’t rules out a shortcode someday, but it’s low on the
   priority list.
 * If it were me, I’d probably register a custom sidebar that is only shown to logged-
   in members.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/shortcode-and-php-function/#post-5359880)
 * OK 🙂 So I had to vote for it ! The custom sidebar was my first idea so I will
   search this way.

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

The topic ‘Shortcode and php function’ is closed to new replies.

 * ![](https://ps.w.org/feature-a-page-widget/assets/icon.svg?rev=974121)
 * [Feature A Page Widget](https://wordpress.org/plugins/feature-a-page-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feature-a-page-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feature-a-page-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/feature-a-page-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feature-a-page-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feature-a-page-widget/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [the_widget](https://wordpress.org/support/topic-tag/the_widget/)

 * 2 replies
 * 2 participants
 * Last reply from: [Li-An](https://wordpress.org/support/users/li-an/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/shortcode-and-php-function/#post-5359880)
 * Status: resolved