GeoDirectory SupportI added a new tab. Now to organize… – GeoDirectory Support https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/feed Sun, 28 Dec 2025 17:48:19 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30159 <![CDATA[I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30159 Fri, 06 Feb 2015 01:25:59 +0000 merchbroker Hello ,

I added a new Tab per your instructions and now I went to reorganize according to your instructions. This obviously didn’t work because I need to account for the new tab. Can you guide me on this?

Thanks!

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30169 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30169 Fri, 06 Feb 2015 09:26:09 +0000 Guust How did you add the new tab?
Are these the instructions you followed?
WP admin details please if you want us to have a check.

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30185 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30185 Fri, 06 Feb 2015 14:42:45 +0000 merchbroker https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30216 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30216 Fri, 06 Feb 2015 18:51:05 +0000 Paolo Did you see this? https://wpgeodirectory.com/support/topic/exclude-selected-tabs-from-detail-page-if-empty/#post-7305

Let us know,

Thx

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30240 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30240 Fri, 06 Feb 2015 21:49:11 +0000 merchbroker Yes,
I think it didn’t work because I added a custom tab. I researched a lot.

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30245 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30245 Fri, 06 Feb 2015 22:13:54 +0000 Paolo Can you please paste your function here? Thx

p.s. and FYI : this is a customization, we provide tutorials to make similar changes, but we don’t debug your custom code on your behalf as part of support here. If you want to modify how the plugin works, you are supposed to know how to debug a function.

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30251 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30251 Fri, 06 Feb 2015 23:17:56 +0000 merchbroker https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30252 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30252 Fri, 06 Feb 2015 23:24:10 +0000 Paolo 1st thing that I notice is that this :


if(isset($tab_array['specials'])){
$new_tab_array['related_listing'] = $tab_array['specials'];// set in new array
unset($tab_array['specials']);//unset in old one
}

should be


if(isset($tab_array['specials'])){
$new_tab_array['special'] = $tab_array['specials'];// set in new array
unset($tab_array['specials']);//unset in old one
}

Let us know,

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30254 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30254 Sat, 07 Feb 2015 00:24:19 +0000 merchbroker Thanks for looking..

Nothing changed at all. What am I missing here?

]]>
https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30276 <![CDATA[Reply To: I added a new tab. Now to organize…]]> https://wpgeodirectory.com/support/topic/i-added-a-new-tab-now-to-organize/#post-30276 Sat, 07 Feb 2015 18:15:59 +0000 Paolo Hi,

there are 2 big mistakes.

1st The comment

/***************************************************ReOrderTabs*******************************************************

was not closed with a / and all code below wasn’t excecuted.

2nd you were using 2 hooks/functions to add and reorder tabs and both have the same names:



add_filter(‘geodir_detail_page_tab_list_extend’, ‘geodir_detail_page_tab_list_extend’) ;

function geodir_detail_page_tab_list_extend($tab_array)
{
// code here 
}

While you only needed 1 hook/function to add and reorder tabs at once, by adding the code below where ever u want it in the function to re-order tabs and deleting the 1st function to add the tab:



$new_tab_array['specials'] = array( 
          'heading_text' =>  __('$10 LUNCH! Menu',GEODIRECTORY_TEXTDOMAIN),
          'is_active_tab' => false,
          'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'specials'),
          'tab_content' => ''
         );

Needs to be $new_tab_array.

I’ve added it correctly to your website. Next time for a similar customization you should directly post in the Jobs forum.

Thank you

]]>