WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
PMP Member page show in backend (7 posts)

  1. TC.K
    Member
    Posted 2 years ago #

    Hi,
    Instead of showing the PMP member pages (eg Account Page,Billing Information Page,Cancel Page,Checkout Page..etc) on the frontend, I like this to be show in the backend. Can I?

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

  2. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    There is no easy way. You would have to basically recode them to show up in the admin.

  3. TC.K
    Member
    Posted 2 years ago #

    @strangerstudios,

    Can I use add_menu_page() and add_submenu_page to create those pages?

  4. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    That would be involved, yes.

  5. TC.K
    Member
    Posted 2 years ago #

    Hi,
    I managed to create a menu and the page in admin panel, but when I try to obtain the content of the page (that created in advance) it only display the shortcode, not the actual content. Eg, it show [pmpro_account].

    I pulled out the content from db directly, similar the code below:
    'global $wpdb;
    $sql_query = 'SELECT DISTINCT * FROM ' . $wpdb->posts .
    ' WHERE ' . $wpdb->posts . '.ID=' . $pageId; $posts = $wpdb->get_results($sql_query);'

    Maybe I using the wrong approach, please advise. Thanks

  6. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    If you output content directly from the database, you need to run it through the "the_content" filter so WP will apply shortcodes, etc.

    You can use something like:

    echo apply_filters("the_content", $content);

  7. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    WP_Dummy, how did this go? Consider sharing your code if you worked out a solution.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic