GeoDirectory SupportCustom Tab On Listing With Link On Click? – GeoDirectory Support https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/feed Wed, 18 Feb 2026 09:47:38 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24218 <![CDATA[Custom Tab On Listing With Link On Click?]]> https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24218 Fri, 12 Dec 2014 23:00:55 +0000 dnosker Greetings,

I have found examples of creating custom tabs on listings and even inserting content inside the tab when clicked… However, I am wanting to create a custom tab and when the user clicks the tab it instead acts as a link to another page. (Perhaps using a url stored in a field for the listing.)

Any source example on how I could do this?

Thanks Much!

]]>
https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24221 <![CDATA[Reply To: Custom Tab On Listing With Link On Click?]]> https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24221 Fri, 12 Dec 2014 23:19:28 +0000 Simone you should be good to go with this (place it in your child theme’s functions.php)


add_filter('geodir_detail_page_tab_list_extend', 'tab_link') ;

function tab_link($tab_link)
{
	$custom_url= geodir_get_post_meta($postid,'geodir_customurl',true); 

 	$tab_link['tab_link'] = array( 
										'heading_text' =>  __('<a href="'.$custom_url.'">TAB LINK</a>',GEODIRECTORY_TEXTDOMAIN),
										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'tab_link')
									);
	return $tab_link ;
}

instructions:
-create a custom field named customurl and paste an url
-change the “TAB LINK” to whatever you want to be the text

]]>
https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24224 <![CDATA[Reply To: Custom Tab On Listing With Link On Click?]]> https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24224 Sat, 13 Dec 2014 00:09:41 +0000 dnosker Thanks a million! Will give it a try

Happy Friday!

]]>
https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24229 <![CDATA[Reply To: Custom Tab On Listing With Link On Click?]]> https://wpgeodirectory.com/support/topic/custom-tab-on-listing-with-link-on-click/#post-24229 Sat, 13 Dec 2014 10:13:31 +0000 Fiskani Chirwa Hi dnosker

Was wondering if you could help me with the custom tab listing?

]]>