Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    How are you adding the shortcode to the confirmation section? PMPro loads the Membership Account pages via page templates, so you won’t see much on the Edit Page screen in the WordPress dashboard other than the associated page shortcode.

    The best way to do this would be to create a custom page template as described here https://www.paidmembershipspro.com/documentation/templates/ and use the WordPress function do_shortcode (https://codex.www.ads-software.com/Function_Reference/do_shortcode)

    Hope that helps!

    Thanks,
    Jess

    Thread Starter sscalifornia

    (@sscalifornia)

    I was trying to add the shortcode to retrieve the user’s name in the text editor for the confirmation message. So when they subscribed to a level, it would greet them by name and then thank them for joining a specific level. I would think that a shortcode would work in the text editor as it does on pages in posts but no such luck.

    So are you suggesting an override of the checkout template and adding the shortcode before the confirmation message? Wouldn’t it be easier if shortcodes just worked in that editor?

    Hello. As Jessica mentioned the easiest way to greet the user by name, would be to create a custom page. The process of creating a custom page is as follows…

    In your active theme’s folder create the directories ‘paid-memberships-pro/pages/’ and copy the page you would like to modify and paste it here. PMPro is setup to look there first to load any customizations.

    Then as Jessica said you can use the do_shortcode function to execute the shortcode and greet the user by name. Hope this helps. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes not working in Confirmation Message’ is closed to new replies.