Title: Using shortcode in post
Last modified: August 21, 2016

---

# Using shortcode in post

 *  Resolved [rfouquet](https://wordpress.org/support/users/rfouquet/)
 * (@rfouquet)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/using-shortcode-in-post/)
 * Hi,
 * Is it possible to use shortcode in Post instead of pages ?
    On my website using
   post is not working.
 * Is there as well a way to call the document gallery using PHP instead of shortcode?
 * Thanks a lot
    Regards.
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/using-shortcode-in-post/#post-5029991)
 * In answer to your first question, yes. The shortcode is handled the same, whether
   it is being used in a page or a post.
 * Your second question is also a yes. All shortcodes can be run through existing
   WordPress core functionality. Specifically, use the following: `do_shortcode('[
   dg <any attributes here>]');`. See the documentation for that method [here](http://codex.wordpress.org/Function_Reference/do_shortcode).

Viewing 1 replies (of 1 total)

The topic ‘Using shortcode in post’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/using-shortcode-in-post/#post-5029991)
 * Status: resolved