GeoDirectory SupportCustom tags in textarea not working – GeoDirectory Support https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/feed Tue, 24 Feb 2026 22:57:16 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13800 <![CDATA[Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13800 Sat, 30 Aug 2014 17:35:33 +0000 Adam Hi,

i bought this plugin http://www.wpsimplebookingcalendar.com/ because i need a simple availability calendar. The problem is – i dont know how to insert it into a custom field – textarea (or should i use some other custom field?). For example i have this code from the plugin that i should insert in any field:

[wpsbc id=”2″ title=”no” legend=”yes” dropdown=”yes” start=”1″ display=”1″ language=”en” month=”0″ year=”0″ history=”1″ tooltip=”no” weeknumbers=”no”]

It doesnt display it. It doesnt recognize the tags. When i enter this code as a post or page, it works fine. How can i get this one working?

Thanks!

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13816 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13816 Sat, 30 Aug 2014 19:09:58 +0000 Paolo Hi,

That is not a GeoDirectory limitation unfortunately. It is WordPress that doesn’t execute shortcodes in custom fileds. There would be a workaround, but there are actually easier solution without using custom fields at all.

Where do you have to add that shortcode and is it the same shortcode for all listings?

Because in that case it would be easier to use the do_shortcode() function to add it using a hook via functions.php file.

If you give us more detail we will give you more info.

Thx

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13818 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13818 Sat, 30 Aug 2014 19:16:47 +0000 Adam Hi Paolo,

thanks again for the absolutely superb support.

I will add this shortcode manually to various listings and it will be always another shortcode (for every listing i need another calendar, so the ID parameter will change), but it would good if it would be visible only in the backend and not in the frontend. Basically that i can go to the backend and add that shortcode to those listing i want to (only to hotels that will pay for this availability calendar). If thats not possible, then we can do it some other way.

Thanks!

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13821 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13821 Sat, 30 Aug 2014 19:32:10 +0000 Paolo This is how I would do it.

1) Avoid using GD custom field and use regular WordPress custom fields.

Example add the shortcode in the backend in a custom field named htl_calendar only to the listings that need the calendar.

2) Once we have the shortocode saved for each listing we will use this php snippet to echo the calendar where you need it using a hook:

echo do_shortcode(get_post_meta(get_the_ID(), 'htl_calendar', true));

Let us know where you wanted it and I’ll try to provide the complete code.

Thx

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13823 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13823 Sat, 30 Aug 2014 19:50:09 +0000 Adam The first step is clear to me, but could you be a little bit more specific with the second step? Where should I add that php snippet?

Basically i would like to have it to show up somewhere in the detail of the listing (doesnt matter where).

Edit – ah, i havent seen the last sentence. So yeah, basically i would like it in in the detailed listing at the end of the profile.

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13875 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13875 Mon, 01 Sep 2014 01:59:53 +0000 Adam I figured it out… i am using a widget + a plugin which lets me edit the widget for every listing…

]]>
https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13952 <![CDATA[Reply To: Custom tags in textarea not working]]> https://wpgeodirectory.com/support/topic/custom-tags-in-textarea-not-working/#post-13952 Mon, 01 Sep 2014 16:27:57 +0000 Paolo Excellent! I was going to write some code, but a back end solution is always preferable.

I’ll set this as resolved.

Thx

]]>