Not Passing Custom Field into URL?
-
Shortcoder is fantastic, thank you so much for creating it.
On a previous website, we used a combination of ACF, Static Blocks and Shortcoder to dynamically send people to a link based on the product they were viewing.
The button would run a shortcode, with the code in Shortcoder being:/request-a-test-certificate?ProductSKU=$$custom_field:ProductSKU$$
This works fine on the previous site.
However, on this site, everything works except for the button. I initially thought there was a problem with ACF not grabbing the custom field, so I set the button text to be the ACF Field for the SKU and that works fine. It just doesn’t like the SKU=$$custom_field:SKU$$
Hovering over the button shows the link as normal, just with the $$custom_field:SKU$$ part missing.
I’ve tried deleting the field group and re-making it however the issue persists. Now I’m stumped.
Any ideas?
On the previous site we used WoodMart. This site we are using XStore.
edit: pics added.
Setting button text to SKU, and link to run the Shortcoder script.This is how it displays on the front-end. It’s grabbing the SKU, but won’t append it to the link (SKU=). How come?!
- The topic ‘Not Passing Custom Field into URL?’ is closed to new replies.