Title: PHP code instead of shortcode
Last modified: December 1, 2016

---

# PHP code instead of shortcode

 *  [chinatownlee](https://wordpress.org/support/users/chinatownlee/)
 * (@chinatownlee)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-4/)
 * Hi,
 * thanks for the great plugin.
 * Could anyone tell me what php code for inserting [RICH_REVIEWS_SNIPPET category
   =”page”][RICH_REVIEWS_FORM] shortcodes?
 * I’d like to put those inside the footer so there would be no need to put the 
   individual shortcodes into every and each single post via wordpress editor.
 * Can’t believe no one already asked this 🙂
 * Regards,
    Lee

Viewing 1 replies (of 1 total)

 *  [saborknight](https://wordpress.org/support/users/saborknight/)
 * (@saborknight)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-4/#post-8664342)
 * Hey,
 * You can use `do_shortcode('[RICH_REVIEWS_SNIPPET category=”page”][RICH_REVIEWS_FORM]');`
   to implement a shortcode in the code.
 * `do_shortcode()` literally just parses the string you give it and then outputs
   the handler if there is one.
 * See the codex:
    [https://developer.wordpress.org/reference/functions/do_shortcode/](https://developer.wordpress.org/reference/functions/do_shortcode/)
 * Enjoy!
    Saborknight

Viewing 1 replies (of 1 total)

The topic ‘PHP code instead of shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rich-reviews_e3f9fb.svg)
 * [Rich Reviews by Starfish](https://wordpress.org/plugins/rich-reviews/)
 * [Support Threads](https://wordpress.org/support/plugin/rich-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/rich-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rich-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rich-reviews/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [saborknight](https://wordpress.org/support/users/saborknight/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-4/#post-8664342)
 * Status: not resolved