Youtube API video player with some options

Needed a video player that could disappear after the video finished. So after some Google’ing and Stackoverflow research, I went with Youtube API. <!– Where the Video is placed –><div id=”VideoHolder”> <div id=”player2″></div></div> <!– JS Code in the footer –><!– Start Video –><script src=”http://www.youtube.com/player_api”></script> <script>        // create youtube player       […]

Some WordPress snippets to speed up the Dev process

WP Snippets:1. List all taxonomies( Categories or other you created) 1.1 Normal Loop for Posts – Categories <?php $args = array(  ‘orderby’ => ‘name’  ); $categories = get_categories( $args ); foreach ( $categories as $category ) { echo ‘<span class=”areaMap”><a href=”‘ . get_category_link( $category->term_id ) . ‘”>’ . $category->name . ‘</a><img class=”orangeArrow” src=”‘. get_template_directory_uri() .[…]

WordPress: Custom Code snippets

Custom Social share:<div class=”socialBG”> <a href=”http://www.facebook.com/sharer/sharer.php?u=<?php echo get_site_url(); ?>/<?php echo $slug = basename(get_permalink());?>” class=”FB” target=”_blank”> </a> <a href=”http://twitter.com/intent/tweet?text=<?php echo get_site_url(); ?>/<?php echo $slug = basename(get_permalink());?>” class=”tw” target=”_blank”> </a> <a href=”http://pinterest.com/pin/create/button/?url=<?php echo get_site_url(); ?>/<?php echo $slug = basename(get_permalink());?>&media=<?php echo $url; ?>&description=<?php echo the_title() ?>” class=”pin-it-button” count-layout=”horizontal” target=”_blank”> </a><a href=”mailto:mail@domain.com?subject=word+word+word+word&body=<?php echo the_title()?>: <?php echo get_permalink() ?>”> <img[…]