• Hello –

    I have registered a new custom tab called “My Favorites”, however this tab will only show if I have the “About” tab enabled:

    https://screencast.com/t/9yPrcC36o

    Also, when I select the newly created tab to set it as the “default” within the UI, it still only defaults to the “About” tab.

    Also, what is the “About” tab for and what does a basic setup look like? I tried accessing your demo from your website but it is currently down. I know there is a form for it in the back-end but not sure what the intended set up really is.

    Thanks for any help in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @psychopomp777,

    Can you please provide the code for the custom tab so we can review? About tab contains the Profile View which is connected to Profile form.

    Thanks.

    Thread Starter Jason Ryan

    (@viablethought)

    Hello –

    Here is the code which was taken from the Ultimate Member website in the documentation section:

    /* Extend main profile tabs */
    add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 );
    function add_custom_profile_tab( $tabs ) {
    
      $tabs['favorites'] = array(
        'name' => 'My Favorites',
        'icon' => 'um-faicon-heart',
      );
      return $tabs;
    }
    
    /* Then we just have to add content to that tab using this action */
    add_action('um_profile_content_favorites_default', 'um_profile_content_favorites_default');
    function um_profile_content_favorites_default( $args ) {
    	echo 'All of your favorite posts should show here!';
    }

    Thanks for looking into this, much appreciated.

    Thread Starter Jason Ryan

    (@viablethought)

    Also, wanted to circle back about the “About” tab. Even though I have added some text by clicking the “add” link in the screenshot, this constantly shows up by default in the about tab?

    https://screencast.com/t/wpaTv9xK

    What is actually supposed to be here? Am I missing something?

    Thanks

    Thread Starter Jason Ryan

    (@viablethought)

    Disregard the last comment about “what goes into the About tab”, I didn’t realize that you need to build the “form” for it that displays information there.

    Issue still exists where the About tab needs to be present in order for any custom tabs to work though.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Profile Tabs Issues’ is closed to new replies.