Title: Shortcode not working
Last modified: July 10, 2018

---

# Shortcode not working

 *  Resolved [cmht](https://wordpress.org/support/users/eightsages/)
 * (@eightsages)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-252/)
 * Hi,
 * I wish to use the plugin shortcode in a new tab that I created in the My Account
   section in Woocommerce, by adding it to custom code in functions.php of my child
   theme (Section 4 below –> echo do_shortcode( ‘[RM_Form id=’3′]’ ); )
 * This shortcode causes the entire site to break with Error 500.
 * I tested shortcode of other plugins and they all work fine, so the problem seems
   to be unique to RegsitrationMagic plugin.
 * Could you please assist to troubleshoot, thanks !
 * Chris
 * ============================
 * // ——————
    // 1. Register new endpoint to use for My Account page // Note: Resave
   Permalinks or it will give 404 error
 * function bbloomer_add_premium_support_endpoint() {
    add_rewrite_endpoint( ‘premium-
   support’, EP_ROOT | EP_PAGES ); }
 * add_action( ‘init’, ‘bbloomer_add_premium_support_endpoint’ );
 * // ——————
    // 2. Add new query var
 * function bbloomer_premium_support_query_vars( $vars ) {
    $vars[] = ‘premium-support’;
   return $vars; }
 * add_filter( ‘query_vars’, ‘bbloomer_premium_support_query_vars’, 0 );
 * // ——————
    // 3. Insert the new endpoint into the My Account menu
 * function bbloomer_add_premium_support_link_my_account( $items ) {
    $items[‘premium-
   support’] = ‘Premium Support’; return $items; }
 * add_filter( ‘woocommerce_account_menu_items’, ‘bbloomer_add_premium_support_link_my_account’);
 * // ——————
    // 4. Add content to the new endpoint
 * function bbloomer_premium_support_content() {
    echo ‘<h3>Premium WooCommerce 
   Support</h3><p>Welcome to the WooCommerce support area. As a premium customer,
   you can submit a ticket should you have any WooCommerce issues with your website,
   snippets or customization. <i>Please contact your theme/plugin developer for 
   theme/plugin-related support.</i></p>’; echo do_shortcode( ‘[RM_Form id=’3′]’);}
 * add_action( ‘woocommerce_account_premium-support_endpoint’, ‘bbloomer_premium_support_content’);
    -  This topic was modified 7 years, 11 months ago by [cmht](https://wordpress.org/support/users/eightsages/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-working-252%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [RegistrationMagic Support](https://wordpress.org/support/users/registrationmagicsupport/)
 * (@registrationmagicsupport)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-252/#post-10479948)
 * Hi,
 * Thank you for writing to us.
 * We need further details to analyze the issue at your end and provide you a speedy
   resolution.
 * Please raise a support ticket on:
    [https://registrationmagic.com/help-support/](https://registrationmagic.com/help-support/)

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/custom-registration-form-builder-with-submission-manager/
   assets/icon.svg?rev=2547375)
 * [RegistrationMagic - User Registration Forms Plugin](https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [RegistrationMagic Support](https://wordpress.org/support/users/registrationmagicsupport/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-252/#post-10479948)
 * Status: resolved