Insert a Featured Video

No, it is not possible as-written in core. the_post_thumbnail() uses the ID of the attachment post-type that has been selected as the featured image for the post, then outputs the image associated with that attachment post-type. You would have to filter the_post_thumbnail() in some manner, but your question specified “without a Plugin”.

Adding Widgets to Masonry Layouts Correctly – jQuery &&|| PHP

Figured it out! Here’s the get_posts method to add a widget (or any content into a masonry layout at the “$counts” number you define) <div class=”arrange”> <?php $args = array( ‘posts_per_page’ => 10000, ‘offset’ => 5, ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘exclude’ => ‘none’, // ‘post_type’ => array(‘post’, ‘page’, ‘video_type’, ‘review_type’ ), ‘post_status’ => … Read more

FancyBox JS stopped working on multiple sites. Custom plugin responsible. Urgent help needed

The Problem is that you include jQuery 1.9, in which the jQuery.browser was removed. Look at your functions.php, you will find a line in there saying wp_register_script or wp_enqueue_script with the parameter ‘jquery’. The URL you are loading jQuery from is ‘http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js‘, and you have to change it to ‘http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js‘. Please ask your developer to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)