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?
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?
There is no easy way. You would have to basically recode them to show up in the admin.
@strangerstudios,
Can I use add_menu_page() and add_submenu_page to create those pages?
That would be involved, yes.
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
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);
WP_Dummy, how did this go? Consider sharing your code if you worked out a solution.
Thanks.
This topic has been closed to new replies.