Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw.../template.../excerpt
File: excerpt-audio.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Show the appropriate content for the Audio post format.
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty_One
[7] Fix | Delete
* @since Twenty Twenty-One 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
$content = get_the_content();
[11] Fix | Delete
[12] Fix | Delete
if ( has_block( 'core/audio', $content ) ) {
[13] Fix | Delete
twenty_twenty_one_print_first_instance_of_block( 'core/audio', $content );
[14] Fix | Delete
} elseif ( has_block( 'core/embed', $content ) ) {
[15] Fix | Delete
twenty_twenty_one_print_first_instance_of_block( 'core/embed', $content );
[16] Fix | Delete
} else {
[17] Fix | Delete
twenty_twenty_one_print_first_instance_of_block( 'core-embed/*', $content );
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
// Add the excerpt.
[21] Fix | Delete
the_excerpt();
[22] Fix | Delete
[23] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function