Should profile fields: address, phone number, etc. show up in listings?

This topic contains 24 replies, has 5 voices, and was last updated by  Stiofan O’Connor 4 years, 9 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #499804

    Naveen Giri
    Moderator
    Post count: 1559

    Ok, I will check downloading the backup and checking it on local.
    update you the progress soon.

    #500277

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @vpmcorp,

    Kleo theme is not fully compatible with GD-v2. it only support GD-v1.
    so you ask for permanent solution in theme support for the sidebar issue.

    but meanwhile if you want to quick fix. you can use code below in your child-theme or using some php snippet plugins.

    
    add_filter( 'kleo_sidebar_name', function ( $name ) {
    	global $geodirectory, $post;
    	$id = $post->ID;
    	if ( get_post_type() == 'gd_place' and ! empty( sq_option( 'geodir_sidebar_place' ) ) ) {
    		return sq_option( 'geodir_sidebar_place', 'sidebar-1' );
    	} elseif ( get_post_type() == 'gd_place' and ! empty( $geodirectory->settings['page_add'] ) && $geodirectory->settings['page_add'] == $id ) {
    		return sq_option( 'geodir_sidebar_add', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_location'] ) && $geodirectory->settings['page_location'] == $id ) {
    		return sq_option( 'geodir_sidebar_location', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_search'] ) && $geodirectory->settings['page_search'] == $id ) {
    		return sq_option( 'geodir_sidebar_search', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_details'] ) && $geodirectory->settings['page_details'] == $id ) {
    		return sq_option( 'geodir_sidebar_details', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_archive'] ) && $geodirectory->settings['page_archive'] == $id ) {
    		return sq_option( 'geodir_sidebar_archive', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_archive_item'] ) && $geodirectory->settings['page_archive_item'] == $id ) {
    		return sq_option( 'geodir_sidebar_archive_item', 'sidebar-1' );
    	} elseif ( geodir_is_cpt_template_page( $id ) ) {
    		return sq_option( 'geodir_sidebar_default', 'sidebar-1' );
    	}
    
    	return $name;
    
    }, 99 );
    

    Regards
    Naveen Giri

    #500591

    vpmcorp
    Full Member
    Post count: 46
    This reply has been marked as private.
    #500595

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @vpmcorp,

    I tried the code on localhost it works fine for me.

    can you please try it. add it in kleo-child theme functions.php at line 41 or send FTP or Cpanel detail in private message so i can add and check it.

    
    
    
    add_filter( 'kleo_sidebar_name', 'gd_kleo_sidebar_name_fix_callback', 99, 1 );
    function gd_kleo_sidebar_name_fix_callback( $name ){
    	global $geodirectory, $post;
    	$id = $post->ID;
    	if ( get_post_type() == 'gd_place' and ! empty( sq_option( 'geodir_sidebar_place' ) ) ) {
    		return sq_option( 'geodir_sidebar_place', 'sidebar-1' );
    	} elseif ( get_post_type() == 'gd_place' and ! empty( $geodirectory->settings['page_add'] ) && $geodirectory->settings['page_add'] == $id ) {
    		return sq_option( 'geodir_sidebar_add', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_location'] ) && $geodirectory->settings['page_location'] == $id ) {
    		return sq_option( 'geodir_sidebar_location', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_search'] ) && $geodirectory->settings['page_search'] == $id ) {
    		return sq_option( 'geodir_sidebar_search', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_details'] ) && $geodirectory->settings['page_details'] == $id ) {
    		return sq_option( 'geodir_sidebar_details', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_archive'] ) && $geodirectory->settings['page_archive'] == $id ) {
    		return sq_option( 'geodir_sidebar_archive', 'sidebar-1' );
    	} elseif ( ! empty( $geodirectory->settings['page_archive_item'] ) && $geodirectory->settings['page_archive_item'] == $id ) {
    		return sq_option( 'geodir_sidebar_archive_item', 'sidebar-1' );
    	} elseif ( geodir_is_cpt_template_page( $id ) ) {
    		return sq_option( 'geodir_sidebar_default', 'sidebar-1' );
    	}
    	return $name;
    }
    

    Thanks

    #501407

    vpmcorp
    Full Member
    Post count: 46
    This reply has been marked as private.
    #501437

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @vpmcorp,

    Kleo theme is not yet fully compatible with GD-v2. you can ask their support for fixing the issue.

    meanwhile you can use the above code.

    Thanks

    #501452

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It seems the way this is now done is you can set the sidebars used under: Theme Options > GeoDirectory.
    This combined with the “Sidebar Generator” plugin they recommend seems to be the solution…

    Am i missing something?

    Thanks,

    Stiofan

    #501464

    vpmcorp
    Full Member
    Post count: 46
    This reply has been marked as private.
    #501504

    Naveen Giri
    Moderator
    Post count: 1559

    Ah, i missed this setting option, thanks stiofan.

    Hi @vpmcorp,

    you don’t need that code snippet and neither any extra plugin.
    theme has already provided support for sidebars here.

    Thanks

    #501552

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    @vpmcorp its a recommended plugin by the theme, its not 100% needed as you could use one of the main sidebars but you would also have any other widgets there.

    The way it “worked fine before” was much less compatible with the majority of themes than the way we do it now.

    Stiofan

Viewing 10 posts - 16 through 25 (of 25 total)

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

Open Support Ticket