How to oEmbed from custom field, responsive to container size and responsive

I completed the task with fitvids.js by using the plugin FitVids for WordPress. Chris Coyier describes the integration with WordPress in his screencast Integrating FitVids.js into WordPress (on YouTube). My custom field name is video_url. I used the following code in my template: <?php if (!((get_post_meta($post->ID, ‘video_url’, TRUE))==”)) { echo wp_oembed_get( get_post_meta($post->ID, “video_url”, true) ); … Read more

How can I show drafts in wp_dropdown_pages list?

Update It seems that you can do this directly with WP function wp_dropdown_pages() as birgire points out in his response below: https://wordpress.stackexchange.com/a/240275/102371 This solution is longer, and uses get_posts() to fetch specific post statuses. $pages = get_posts( array( ‘post_type’ => ‘page’, ‘post_parent’ => 0, ‘post_status’ => array( ‘draft’, ‘publish’ ) ) ); echo ‘<select name=”selected-food-type” … Read more