Title: Shortcode not displaying
Last modified: January 8, 2021

---

# Shortcode not displaying

 *  Resolved [Rebusify](https://wordpress.org/support/users/rebusify/)
 * (@rebusify)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/)
 * I have a custom WP Plugin that displays custom php pages and I need to add the
   My Account shortcode to this page. Because it’s a custom php code page it won’t
   display the my account area shortcodes. It simply displays the shortcode text.
   How can I get the My Account area to show up on my custom php page and not display
   the shortcode text on the screen? Thanks in advance.

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

 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/#post-13883083)
 * Hello [@rebusify](https://wordpress.org/support/users/rebusify/) ,
 * Are you trying to put your my account shortcode directly on the template file?
 * WordPress has a function to allow shortcodes on the template file. You have to
   use the shortcode like this –
 * `echo do_shortcode( '[woocommerce_my_account]' );`
 * You can learn more about this function here – [https://developer.wordpress.org/reference/functions/do_shortcode/](https://developer.wordpress.org/reference/functions/do_shortcode/)
 * It is recommended that you select the correct page with the shortcode as your
   my-account page in wp-admin > WooCommerce > Settings > Advanced menu.
 * Thank you 🙂
 *  Thread Starter [Rebusify](https://wordpress.org/support/users/rebusify/)
 * (@rebusify)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/#post-13883149)
 * No, it’s not a template file. This is a custom plugin with a custom page that
   while it does reside within my wordpress site, it’s not pulling all the necessary
   details to generate the WooCommerce my account area. I guess what I’m looking
   for is how to pull those details to show the my account area. Thank you for your
   reply.
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/#post-13885574)
 * Hello [@rebusify](https://wordpress.org/support/users/rebusify/) ,
 * I am afraid the requirements require more debugging and understanding of how 
   your custom plugin is working.
 * If you are the developer of the plugin you can take a look at how the my-account
   shortcode is generating its content here – [https://github.com/woocommerce/woocommerce/blob/master/includes/shortcodes/class-wc-shortcode-my-account.php](https://github.com/woocommerce/woocommerce/blob/master/includes/shortcodes/class-wc-shortcode-my-account.php)
 * If you are using a plugin from another developer, you need to contact the developer
   to get their suggestion on how can you connect their plugin and WooCommerce functionality.
 * As you can see, this is a fairly complex development topic. I’m going to leave
   it open for a bit to see if anyone is able to chime in to help you out.
 * I can also recommend the [WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * If you need a paid solution, you can consider taking help from [one of our partner’s website](https://woocommerce.com/customizations/).
 * Thank you 🙂
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/#post-13914413)
 * Hi there,
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
 * Hopefully, you were able to find a solution to your problem! If you have further
   questions, please feel free to open a new topic.
 * Thank you 🙂

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

The topic ‘Shortcode not displaying’ is closed to new replies.

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

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/shortcode-not-displaying-4/#post-13914413)
 * Status: resolved