We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd59cfc commit eeb32d7Copy full SHA for eeb32d7
1 file changed
includes/views/single-listing.php
@@ -193,14 +193,9 @@ function single_listing_post_content() {
193
</div><!-- #listing-gallery -->
194
<?php } ?>
195
196
- <?php if (get_post_meta( $post->ID, '_listing_video', true) != '') {
197
- $video_url = get_post_meta( $post->ID, '_listing_video', true);
198
- ?>
199
<div id="listing-video">
200
<div class="iframe-wrap">
201
- <?php if (wp_oembed_get( $video_url )){
202
- echo wp_oembed_get( $video_url );
203
- } else { echo "<a href='$video_url'>$video_url</a>"; } ?>
+ <?php echo get_post_meta( $post->ID, '_listing_video', true); ?>
204
</div>
205
</div><!-- #listing-video -->
206
0 commit comments