Vikas
Forum Replies Created
-
AuthorPosts
-
Hi,
Plz let me know correct userid and pass for admin in private reply.
Thanks
August 1, 2014 at 12:12 pm in reply to: Custom Tabs on Detail Site only at specific Custom Post Type #10631@Simone sorry to bother but he wants to remove the tab not the content, so here is better code
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ; function geodir_detail_page_tab_list_extend($tab_array) { global $post ; if($post->post_type != 'Write the post type u want to hide this tab for') // e.g gd_place { $tab_array['sportaktiv_tab'] = array( 'heading_text' => __('SPORTaktiv',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'sportaktiv_tab'), 'tab_content' => '' ); $tab_array['routen_tab'] = array( 'heading_text' => __('Routen',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'routen_tab'), 'tab_content' => '' ); $tab_array['sportdetails_tab'] = array( 'heading_text' => __('Sportdetails',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'sportdetails_tab'), 'tab_content' => '' ); }// end of if for post type check return $tab_array ; }
Let me know if it works.
Thanks
Hi,
Plz come again with the problem u are facing and your site url and admin access in private reply.
Thanks
Hi,
Will u plz attache the images u are trying to upload ?
I found that u are trying to upload some different formatting images.Thanks
There is no problem in doing this.
I set status of these as virtual to just separate them from common pages.Yes, GD will work fine.
I have removed that code from your site.
These instructions are for others who might have deleted those pages accidentally.Thanks
Hi,
Thanks for sending all these info, these really help me to fix the problem.
Everything should work fine now. Plz check and let me know.If anyone else has same problem of missing default GD pages please follow these instructions
1. Put below code in ur theme’s functions.php file.
function geodir_restore_default_pages() { //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' ); geodir_restore_default_page( esc_sql( _x('listings', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_listing_page', __('All Listings', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('add-listing', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_add_listing_page', __('Add Listing', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('listing-preview', 'page_slug', 'geodirectory') ), 'geodir_preview_page', __('Listing Preview', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('listing-success', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_success_page', __('Listing Success', GEODIRECTORY_TEXTDOMAIN), '' ); geodir_restore_default_page( esc_sql( _x('location', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_location_page', __('Location', GEODIRECTORY_TEXTDOMAIN), '' ); } function geodir_restore_default_page( $slug, $option, $page_title = '', $page_content = '', $post_parent = 0,$status = 'virtual' ) { global $wpdb, $current_user; $page_found = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;", array($slug) ) ); if ($page_found) : // Page exists update_option($option, $page_found); return; endif; $page_data = array( 'post_status' => $status, 'post_type' => 'page', 'post_author' => $current_user->ID, 'post_name' => $slug, 'post_title' => $page_title, 'post_content' => $page_content, 'post_parent' => $post_parent, 'comment_status' => 'closed' ); $page_id = wp_insert_post($page_data); add_option($option, $page_id); } add_action('init' , 'geodir_restore_default_pages') ;
2. once u find that everything is working fine now just remove this piece of code from theme’s functions.php file
Thanks for ur patience.
oh,
It seems that u have activated all plugins again.
Will u plz deactivate all of them again one by one and let me know when u see that output again ?If u see that output again then plz to geodirectory > geodirectory-functions > using ftp.
U will see two files with the name custom_taxonomy_hooks_actions.php and ~custom_taxonomy_hooks_actions.php, so just delete the file with the name
custom_taxonomy_hooks_actions.php only and then rename ~custom_taxonomy_hooks_actions.php to custom_taxonomy_hooks_actions.php this will restore the working version of that file.Thanks
no no.
This is what i wanted to see actually.
Please wait for my next reply.Thanks
This reply has been marked as private.This reply has been marked as private.Hi,
I need FTP , database access too, plz send them in private reply.
Thanks
Hi,
Plz download location.zip, extract it and upload those two php files in ur location manager ad-on folder using ftp.Let me know ur comment.
Thanks
Hi,
Did u try to disable other plugins and see the result ?
-
AuthorPosts