wordpress

Show ACF custom field in elementor

Some time such requirement created for elementor so that we have to use ACF custom field in the elementor builder . For such type of issue we can solve by making shortcode for acf and use in elementor. Like i want to use acf video url field to show vimeo video in elementor. <?php add_shortcode( 'vimeo_video_to_elementor', 'add_vimeo_video_to_elementor' ); function add_vimeo_video_to_elementor(){ $content = get_field('lesson_video'); $content = str_replace('https://vimeo.com/','',$content); $data = explode('/',$content ); if ( is_array( $data ) && array_key