- This topic has 3 replies, 2 voices, and was last updated 13 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Shortcode [wp_eStore:product_id:1:end] not working in Custom Fields
Tagged: custom fields, shortcode
I tried other shortcodes, ones specifically that didn’t have a ‘:’ in them ([wp_eStore_fancy1 id=1] for example), and they would display in the post div. I checked my Custom Fields Template settings, and I didn’t see any option to enable certain characters. Using [wp_eStore:product_id:1:end] or [wp_eStore_buy_now:product_id:1:end] would only display that function as text in the div. Is there something else I need to enable or is it another issue?
I forgot to mention I’m using WP 3.1 with all updated plugins.
The [wp_eStore:product_id:1:end]
and [wp_eStore_buy_now:product_id:1:end]
shortcodes were implemented pre WordPress 2.5 time frame when WordPress didn’t have the shortcodes API that is now does. So those shortcodes are implemented using a filtering technique and doesn’t work in your custom field.
I am in the process of slowly adding the proper shortcode version of the older shortcodes (need to keep backwards compatibility). I will add the following shortcode to the plugin which will replace [wp_eStore:product_id:1:end]
[wp_eStore_add_to_cart id=1]
The following shortcode will replace [wp_eStore_buy_now:product_id:1:end]
[wp_eStore_buy_now_button id=1]
Download a new build of eStore in about 6-8 hours from now and you should have these new shortcodes ready:
It works great, thanks Key Master.