Custom Profile Tab Error
-
Hi,
I am currently running into an error while using this plugin to create Custom Profile Tabs that call Profile Form shortcodes, any idea why this might be happening? The goal behind doing this is to tab-out my profile forms so that profile field content isn’t all stored in one section.
Example Code Below:
add_filter(‘um_profile_tabs’, ‘add_custom_profile_tab’, 1000 );
function add_custom_profile_tab( $tabs ) {$tabs[‘biographyy’] = array(
‘name’ => ‘Biographyy’,
‘icon’ => ‘um-faicon-comments’,
‘custom’ => true,
);add_action(‘um_profile_content_biographyy_default’, ‘um_profile_content_biographyy_default’);
function um_profile_content_biographyy_default( $args ) {
echo do_shortcode( ‘[ultimatemember form_id=”487″]’);
}Everything works fine until I click into the tab “Biography” and see a 500 error. I can swap out the shortcode with static text and it works just fine, but whenever I use UM’s Profile Form shortcodes, it kicks back this error upon visiting the tab itself.
Is this not possible with this plugin, or am I doing something wrong?
- The topic ‘Custom Profile Tab Error’ is closed to new replies.