Skip to content

Commit eeb32d7

Browse files
committed
Revert video embed code
1 parent fd59cfc commit eeb32d7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

includes/views/single-listing.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,9 @@ function single_listing_post_content() {
193193
</div><!-- #listing-gallery -->
194194
<?php } ?>
195195

196-
<?php if (get_post_meta( $post->ID, '_listing_video', true) != '') {
197-
$video_url = get_post_meta( $post->ID, '_listing_video', true);
198-
?>
199196
<div id="listing-video">
200197
<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>"; } ?>
198+
<?php echo get_post_meta( $post->ID, '_listing_video', true); ?>
204199
</div>
205200
</div><!-- #listing-video -->
206201
<?php } ?>

0 commit comments

Comments
 (0)