• Hi there,

    On the site that I am working on, there are YouTube videos embedded via ACF with a filed type set to ‘oembed’.
    There’s a suggestion on using Lyte with ACF on their own support forum, and I also noticed the same advice here, but it seems that it only applies for custom fields with type ‘text’:

    function my_acf_format_value_v5( $value, $post_id, $field ) {
    	
    	$value = lyte_parse($value);
    	return $value;
    }
    
    add_filter('acf/format_value/name=field_name', 'my_acf_format_value_v5', 10, 3);

    Does anyone have a suggestion on using ‘oembed’ type of custom field with WP YouTube Lyte?

    • This topic was modified 4 years, 6 months ago by gyrdnv.
Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm … could be you need a different filter there gyrdnv, but afraid I don’t know ACF well enough to say if that is the case, maybe ask their support if there’s a specific way to hanle oembed custom fields?

Viewing 1 replies (of 1 total)
  • The topic ‘ACF type ‘oembed’ and YouTube Lyte’ is closed to new replies.