GeoDirectory SupportHow to use a shortcodce in a Custom Field – GeoDirectory Support https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/feed Wed, 04 Feb 2026 10:54:58 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27728 <![CDATA[How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27728 Fri, 16 Jan 2015 20:42:17 +0000 amstourist Hello from Amsterdam!

I want to use a shortcode in a Form Field. How can I do that?
At this time the shortcode doesn’t work, it only shows the shortcode and not the searchbox that supposed to show up with that shortcode.

Hope you can help me on this, because it’s an important item for the design and usage of my wesbite…..

Cheers, Jan

]]>
https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27729 <![CDATA[Reply To: How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27729 Fri, 16 Jan 2015 21:06:09 +0000 Paolo Hi,

this is not possible. Personally I would add the shortcode to the template with a function.

Thx

]]>
https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27731 <![CDATA[Reply To: How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27731 Fri, 16 Jan 2015 21:57:10 +0000 amstourist Ho @paolo,

Using a shortcode in template with a function doesn’t work for me. For every listing it’s a different shortcode…

Is there any other option?
A shortcode does work on the “Property Information” tab….

Cheers, Jan

]]>
https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27780 <![CDATA[Reply To: How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27780 Sat, 17 Jan 2015 13:51:47 +0000 Stiofan O'Connor Hi Jan,

May i ask what this is for? And where exactly you want it?

Stiofan

]]>
https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27828 <![CDATA[Reply To: How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27828 Sat, 17 Jan 2015 20:11:00 +0000 Paolo Hi,

by default on wordpress, shortcode are only parsed in the content of the posts.

They do not work in custom fields unless the function that displays them is wrapped in a do_shortcode() function, which is not the case with GD, because custom fields are dynamic and wrapping them all in do_shortcode by default would make the code redundant.

I ask this to Stiofan, why don’t we add a shortcode ready custom field between the possible options?

Let us know,

Thx

]]>
https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27913 <![CDATA[Reply To: How to use a shortcodce in a Custom Field]]> https://wpgeodirectory.com/support/topic/how-to-use-a-shortcodce-in-a-custom-field/#post-27913 Sun, 18 Jan 2015 22:03:49 +0000 amstourist Thx Paolo!

I’m using a plugin to search and book hotels on booking.com:
https://wordpress.org/plugins/bookingcom-affiliate-plugin/

It works with shortcodes, so I can make a hotel searchbox for each hotel. So I need that searchbox on one of the field options….

But….. I think I found another solution. Just have to test it. There is another booking.com plugin:
https://wordpress.org/plugins/bookingcom-official-searchbox/

This plugin works with widgets. I have to set a widget area in a sidebar with this plugin (thats possible with WPGeodirectory) and specify a destination per post using meta Boxes.
I think this would be even more easier for me….

I’ll let you know if it works…

But anyway many thx in advance for listening to me…. 😉
Keep you posted if I still need a solution…

Cheers, Jan

]]>