Hi guys, I was wondering if someone could help me with this.
I have a Custom Post Type called “discounts”.
I have 3 “discounts” posts.
Each post consists of 1 custom field made with ACF where a URL must be placed the name of the field is “link\_discounts\_1”.
Now it turns out that in my blog posts I usually place affiliate links, but these links may change over time. So instead of placing each link what I want is to place a shortcode that takes the URL from the CPT “discounts” / post id / “link\_discounts\_1”.
Has anyone done something like this that can give me a light on how to do it?
​
[ad_2]