• Resolved vbmark

    (@vbmark)


    Hello,

    According to this page Override Front-end Pages with Your Theme PMPro can work in a Template Page. But I cannot get it to work. The shortcode is just displayed on the screen.

    I’ve tried different methods and none work. For example:
    echo do_shortcode('[pmpro_billing]');

    I have also tried different themes just to be sure it wasn’t that.

    Would there be any way to get it to work in a standalone page outside of wordpress if I reference/require the correct wordpress php files?

    Thanks!

    http://wordpress.org/plugins/paid-memberships-pro/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi vbmark,

    That document outlines the fact that you can create a custom template for the [pmpro_billing] shortcode or a custom template that contains all of the functionality that the [pmpro_billing] shortcode handles.

    Basically you have two options here:
    1.) Copy a “page” template from PMPro into your theme and then customize it as necessary. When accessing the PMPro Billing page, your template will be loaded over the PMPro template.

    2.) Copy all of the functionality inside of the “page” from PMPro and paste that into a template that is based on a page template in your current theme. Follow step #4 on that documentation.

    The reason your current method is not working, is due to the nature of PMPro and how the shortcodes are created/added. Here’s the source code for that: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/init.php#L109.

    Hope this helps!

    Thanks

    Thread Starter vbmark

    (@vbmark)

    Thank you for your tips and your link. With this information it wasn’t too difficult to make a child template and have it work, but it took me between three and half to four hours to make it work in a standalone page. Partly because I’m still figuring out how WordPress works behind the scenes. But it’s working now.

    So thank you for a great piece of software and for taking the time to help out people like me. It is greatly appreciated.

    I spent about a week researching payment processing solutions by reading reviews, comparing features, and seeing how/if the company responded to people.

    I think I made the right choice.

    Thanks!

    Hi vbmark,

    Glad we could help you accomplish what you were looking to do! Please let us know if you have any other questions!

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using PMPro in a Page Template’ is closed to new replies.