Title: Using shortcodes on custom plugin
Last modified: September 10, 2021

---

# Using shortcodes on custom plugin

 *  [edeykin](https://wordpress.org/support/users/edeykin/)
 * (@edeykin)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-shortcodes-on-custom-plugin/)
 * I am trying to figure out how to bring WP shortcode compatibility to a custom
   plugin.
 * The main site is elms.edu
 * With a custom plugin which generates a page under the URL prefix lp/
 * However shortcodes do not work under the lp/ prefix. Do I need to point the shortcodes
   to the plugin generating the pages, or add the shortcodes in the plugin php?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-shortcodes-on-custom-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-shortcodes-on-custom-plugin/#post-14859652)
 * You description is not that clear, but I think you are saying when you add a 
   shortcode to the text of page generated by the custom plugin they don’t work?
 * So you get something like `[gallery ]` ?
 * In which case the custom plugin is ‘doing it wrong’ and will need to pass the
   text it outputs through `do_shortcode()` before output.
 * Can you not ask the custom plugin developer?

Viewing 1 replies (of 1 total)

The topic ‘Using shortcodes on custom plugin’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/using-shortcodes-on-custom-plugin/#post-14859652)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
