Title: Display Shortcode Inside Plugin
Last modified: August 21, 2016

---

# Display Shortcode Inside Plugin

 *  [telkins](https://wordpress.org/support/users/telkins/)
 * (@telkins)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/display-shortcode-inside-plugin/)
 * I am trying to use a plugin that uses a shortcode to display custom posts inside
   of store locator plugin.
 * Essentially, when the client would load a location and place a shortcode like[
   display-posts post_type=”promo” posts_per_page=”1″ include_excerpt=”true” author
   =”telkins”].
 * However, anytime I add this to the description, I see [display-posts post_type
   =”promo” posts_per_page=”1″ include_excerpt=”true” author=”telkins”] instead 
   of the shortcode. Is there a way to make a shortcode work inside a plugin?
 * I also tried <?php echo do_shortcode(‘[display-posts post_type=”promo” posts_per_page
   =”1″ include_excerpt=”true” author=”telkins”]’); ?> in the description and it
   does the same thing. Thanks to anyone who can help!

The topic ‘Display Shortcode Inside Plugin’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [telkins](https://wordpress.org/support/users/telkins/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/display-shortcode-inside-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
