Dear Champ,
Thank you for your reply.
So, I have created this profile form https://i.imgur.com/xpRhmvj.png (it’s in Greek) and as you can see it, has the shortcode with id 160.
To add the custom tab on the profiles tab, used this code:
function um_mycustomtab_add_tab( $tabs ) {
/* Etairika Stoixeia */
$tabs['etairika_stoixeia'] = array(
'name' => 'Εταιρικ? Στοιχε?α',
'icon' => 'um-faicon-book',
'custom' => true
);
if ( !isset( UM()->options()->options['profile_tab_' . 'etairika_stoixeia'] ) ) {
UM()->options()->update( 'profile_tab_' . 'etairika_stoixeia', true );
}
return $tabs;
}
add_filter( 'um_profile_tabs', 'um_mycustomtab_add_tab', 1000 );
/**
* Render the tab 'Etairika Stoixeia'
* @param array $args
*/
function um_profile_content_etairika_stoixeia( $args ) {
echo do_shortcode('[ultimatemember form_id="160"] ');
add_action( 'um_profile_content_etairika_stoixeia', 'um_profile_content_etairika_stoixeia' );
Where you can see, I “echo” the shortcode. However, this is the issue:
View post on imgur.com
It just repeats the whole profile and not just the fields on it. Any ideas?
Thank you for your time.