How can I import content from a CPT to a normal Post?

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer