Hi i has the audio post format my post contain the audio embed code format and in homepage show me the audio player and the text description as you can see in image below.
i used the the_content();
function to show the whole content. how i can modify the the_content();
function until show me only the audio players and not show me the text description.
for information i used this code below to modify the content field until only show the audio players in my home page the code it is work but only show the audio link and don’t show me the audio such as audio player.
$first_audio = '';
$output = preg_match_all('/http://.*/(.*).(mp3|m4a|ogg)/', get_post_field('post_content', $first_audio), $matches);
$first_audio = $matches[0][0];
echo '<br />';
echo $first_audio;
I modified this function below to use or get the word numbers form excerpt or from content