The issue I am trying to solve is within the WordPress loop, I only want video embeds or images to display, not any text.
Currently, when creating a new post (Standard format) in the WordPress editor, most of my posts look like this:
Some supporting text below the video
And of course WordPress will then create an automatically embedded video using whatever YouTube or Vimeo link I put in there.
When displaying the list of posts, I do not want
Some supporting text below the video to display, only the video.
content.php page is pretty basic and just displays the content using
<?php the_content(); ?>
Is there a way to strip out this text on each post?