What is difference between add_theme_support and Theme Customization API?

They’re not directly really related, and do different things, except for a couple of situations. The Customization API is a way of registering settings and controls in the Customizer, and is very flexible. You can use it to add controls for just about anything in your theme. add_theme_support(), on the other hand, lets your theme … Read more

Replace featured image when shortcode is present

I think you have to pass post ID parameter in the get_field() if you get data using loop. so pass the in the get_field(). because currently it is trying to get data from current page field. Try this if it works : if( get_field( ‘video_link’, get_the_id() ) ) { get_field( ‘video_link’, get_the_id() ); } else … Read more