Paola Bueso
Forum Replies Created
-
AuthorPosts
-
That was exactly it. Thank you so much for your help Guust!
OMG! My bad hahaha easiest debug EVER. Thank you so much Simone!
This reply has been marked as private.Thank you so much for your response Guust! It was very helpful. I’ve been able to successfully add all “Add Listing” pages to the menu except the one for Places. I’ve used http://www.clothingfactoryfinder.com/add-listing/?listing_type=gd_place as the link on my menu, as you can see in the screenshot, saved it and when I click on the menu option it redirects me to the homepage. You can try it out by clicking on the “Add Place” link in the main menu, under “Add factory”, here: http://www.clothingfactoryfinder.com. I was wondering if you had any suggestions. Thank you in advance for your help!
I’ve cleared the browser cache and it’s working perfectly again. Thank you so much for all your help Paolo! Take care!
This reply has been marked as private.So sorry about that! I believe I’ve unblocked you now. Let me know.
This reply has been marked as private.I’ve also tried to delete the CPT all together in order to start all over again and it doesn’t seem to be working either.
Hi Paolo,
Thank you for the quick response! I’ve clicked the red X button and the ‘delete’ button at the bottom and I see no changes at all in the page.Brilliant! Thank you so much Paolo & Simone for all your help! You’ve been outstanding! The plugin is absolutely amazing and your support has been absolutely amazing! I’m off to purchase the membership now. Grazie mille! 😀
I’ve added the code to the functions.php and saved it. I don’t really know where to look for the tab index output tho. I’ve attached an image for reference. Nothing has really changed since saving the code. Again, thank you so much for the help.
Thank you so much Simone! I really appreciate it.
This is what I’ve put in the child theme’s function.php now:
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ; function geodir_detail_page_tab_list_extend($tab_array) { // here u can modify this array, u can create a completely new one too. if(isset($tab_array['basic_information'])){ $new_tab_array['basic_information'] = $tab_array['basic_information']; // set in new array $new_tab_array['basic_information']['is_active_tab']='1'; unset($tab_array['basic_information']);//unset in old one } if(isset($tab_array['post_profile'])){ $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array $new_tab_array['post_profile']['is_active_tab']=''; unset($tab_array['post_profile']);//unset in old one } if(isset($tab_array['post_map'])){ $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array unset($tab_array['post_map']);//unset in old one } if(isset($tab_array['special_offers'])){ $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset($tab_array['special_offers']);//unset in old one } if(isset($tab_array['post_info'])){ $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array unset($tab_array['post_info']);//unset in old one } if(isset($tab_array['post_images'])){ $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array unset($tab_array['post_images']);//unset in old one } if(isset($tab_array['post_video'])){ $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array unset($tab_array['post_video']);//unset in old one } if(isset($tab_array['special_offers'])){ $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset($tab_array['special_offers']);//unset in old one } if(isset($tab_array['reviews'])){ $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array unset($tab_array['reviews']);//unset in old one } if(isset($tab_array['related_listing'])){ $new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array unset($tab_array['related_listing']);//unset in old one } // now we set any remaining tabs that have not been assigned an order foreach($tab_array as $key=>$tab){ $new_tab_array[$key]=$tab; } return $new_tab_array ; }
It’s not quite right yet. I’ve attached an image of what you can see now as soon as you open the page. Maybe the problem has to do with the fact that the “Basic Information” tab is a fieldset. I don’t know what I should use as the HTML variable name for this tab, like, instead of using the name “basic_information”. I hope you can point me in the right direction. Thank you once again for your help!
PaolaThank you so much for the response! Yes, it is a fieldset.
-
AuthorPosts