Profile tab

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 7 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #304730

    Diane Kelm
    Buyer
    Post count: 49

    Can I display custom fields in the first tab (Profile tab)?

    #304869

    Kor
    Moderator
    Post count: 16516

    Hi Diane,

    To show them in the main profile tab, custom code will be required.

    Here you can find an example: https://wpgeodirectory.com/support/topic/echo-functionality-in-first-tab/#post-168947

    #305515

    Diane Kelm
    Buyer
    Post count: 49

    Thank you, what is the format to access my custom fields?

    #305540

    Paolo
    Site Admin
    Post count: 31206

    hi Diane,

    there is an example in the link provided by Kor:

    
    
    global $post;
    echo $post->post_address;

    If you created a custom field with htmlvar test, it will be:

    
    
    global $post;
    echo $post->geodir_test;

    If you have any doubts, you can check the field names in the database directly.

    Thanks

    #306664

    Diane Kelm
    Buyer
    Post count: 49

    will this call remove everything in the profile tab?
    remove_action( ‘geodir_details_main_content’…

    I still want to keep description.
    is description $post->post_description?

    #306784

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    it will not. That’s an incomplete snippet and will do absolutely nothing other than causing a php error.

    The description is

    the_content();

    .

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket