Display Video as Post Thumbnail

From looking at the source code of the theme the “Montreal By Winter” post (Which I assume is what you’re trying to replicate) has the “Video” post format. I’d image selecting that when creating a post will enable you to add a video embed code.

reusing code in function and running it with loop

You would need to set up the function like this in your functions.php function my_function(){ //your function in here include(TEMPLATEPATH . ‘[variable][1].php’); } And then in your loop you would call it like so: $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 4, ); $featured_query = new WP_Query($args); if ($featured_query->have_posts()) { while ($featured_query->have_posts()) { $featured_query->the_post(); … Read more

Error in php code

This is no WordPress error (as you can see due to the page being completely loaded, see the WordPress footer, for instance) — it is a user error. In the add_submenu_page call, you specified the function wptuts_landing_settings_page, while your actual function is called director_settings_page.