Have a Question?

Send me a quick message and I’ll get back with you ASAP!

[vfb id=1]

WordPress Toggle Class Name – In Loop

Uncategorized POSTED ON 05.09.2013

<?php $args = array( ‘post_type’ => ‘xxxposttypenamexxx’ ); $loop = new WP_Query( $args ); $c = 0; while ( $loop->have_posts() ) : $loop->the_post(); $c++; if( ($c % 2) == 1 || ($c % 2) == 2 ) $odd_even = ‘clearfix odd-post span6′; else $odd_even = ‘even-post span6′ ?> <div <?php post_class( $odd_even ); ?>> <div […]

url
Toggle Sub-Nav

code POSTED ON 02.18.2013

jQuery(document).ready( function() { jQuery(‘#api-nav ul#menu-api-menu li:has(ul) > a’).click(function(e) { e.preventDefault(); }); jQuery(‘#api-nav ul#menu-api-menu li:has(ul)’).click(function(e) { jQuery(‘ul’,this).slideToggle(‘slow’); }); });  

url
In the meantime…

Music POSTED ON 01.13.2012

Well, a tradesman’s own house always suffers at the expense of their clients. I am no different. It may be a slow process finalizing the code and design of this site, but it will be done. So, in the meantime, I thought I’d share a little gem I found today. I’m amazed I had never […]

procussions
Howdy!

News POSTED ON 01.09.2012

Well, SadMonkey has a new facelift. The bandages are still on, we’re not quite through, but we’re close! SMD still needs to go responsive, get a little glitz from some jQuery and of course, get a good cleaning for all those nasty IE bugs, but we’re almost there. In the meantime, the blog will be […]

monkey