Tag Info

New answers tagged

-2

Try this code. Just copy and paste in a HTML file. <!DOCTYPE html> <html> <body> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script> var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = ...


1

Use the property current_post of a WP_Query object - it'll be zero for the first post: if ( $wp_query->current_post === 0 ) // First post in main loop if ( $get_videos->current_post === 0 ) // First video in current videos loop



Top 50 recent answers are included