Closed jhtjards closed 1 year ago
Thank you for the information, I will check that!
One information is missing: How do you output the content in your theme? I want to make sure to be as close as possible in my testing environment.
Sure, but there's really nothing special there: In single-veranstaltungen.php I have the standard loop in which I use a template part called content-veranstaltungen.php
In content-veranstaltungen the field content of "beschreibung" is output via
<?php the_field( 'beschreibung' ); ?>
The nested "programm" fields are output via:
<?php while ( have_rows( 'programm' ) ) : the_row(); ?>
<?php if(get_sub_field( 'programm1' ) /*|| get_sub_field( 'programm2' )*/): ?>
<h3>Programm</h3>
<?php if( get_sub_field( 'cols' ) == '1' ): ?>
<div>
<?php the_sub_field( 'programm1' ); ?>
</div>
<?php else: ?>
<div class="row">
<div class="col-sm-6">
<?php the_sub_field( 'programm1' ); ?>
</div>
<div class="col-sm-6">
<?php the_sub_field( 'programm2' ); ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
Unfortunately, I cannot reproduce the issue with this code. An embedded YouTube video gets replaced properly and all needed styles and scripts are loaded. Is it possible to receive access to a test environment including (S)FTP so that I can debug it there directly?
Hi, sorry for the wait while I've been on holiday. I've sent you an email with login credentials to my dev site to hey at epiph.yt.
I've stumbled upon one potentially interesting behaviour:
When I clear any cached oembed post meta, save and then enter the youtube url (& save again), the thumbnail is correctly shown. However when I save the post the second time, like after a normal post edit, the thumbnail disappears again.
Thank you, I’ve got your email and it’s on my list.
Bug/Problem
I've encountered an issue on one of my sites in conjunction with ACF Pro WYSIWYG Field, where the replacement of youtube oembed with the embed-privacy works, but no styles and scripts seem to be enqueued.
By adding
add_filter( 'acf_the_content', [ $this, 'replace_embeds' ], 10, 2 );
to Line 273 in inc/class-embed-privacy.php I can re-enable the enqueue of embed-privacy's scripts, but the functionality of the sideloaded YT-Video-Thumbnail is lost.The ACF Field is used with a custom post type
Steps to reproduce
Create a Custom Post Type, like:
Import the following ACF JSON File:
Post a youtube Link into either "Beschreibung" or "Programm".
Version
1.7.2
Link
No response
Environment info
WP 6.2. Embed Privacy 1.7.2 ACF Pro 6.1.6 Classic Editor | Version 1.6.3
Custom Theme
Code of Conduct