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 5 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: profile
-
AuthorPosts
-
July 26, 2019 at 4:32 pm #499804
Ok, I will check downloading the backup and checking it on local.
update you the progress soon.July 30, 2019 at 4:24 am #500277Hi @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 GiriJuly 31, 2019 at 3:56 pm #500591This reply has been marked as private.July 31, 2019 at 4:14 pm #500595Hi @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
August 5, 2019 at 3:32 pm #501407This reply has been marked as private.August 5, 2019 at 4:28 pm #501437Hi @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
August 5, 2019 at 6:09 pm #501452It 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
August 5, 2019 at 7:23 pm #501464This reply has been marked as private.August 6, 2019 at 5:40 am #501504Ah, 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
August 6, 2019 at 9:32 am #501552@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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket