This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<divid="menu"class="menu-center"> | |
<?php wp_nav_menu( array('theme_location'=>'main'));?> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ============================================================================= | |
WordPress WYSIWYG Editor Styles | |
========================================================================== */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
max-width: 100%; | |
height: auto; | |
} | |
.alignleft, img.alignleft { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function(){ | |
console.log($('img#avatar')); | |
// displaying avatars in carousel | |
$(".carousel-holder").jCarouselLite({ | |
btnNext: ".next", | |
btnPrev: ".prev", | |
visible: 8 | |
}); | |
$('img#avatar').each(function(){ | |
var imgObj = $(this)[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$temp = $post; // stash previous loop | |
// begin nested loop | |
$args2 = array( 'post_type' => 'brand', 'p' => $partner_id); | |
$loop2 = new WP_Query( $args2 ); | |
while ( $loop2->have_posts() ) : $loop2->the_post(); | |
?> | |
<!-- do stuff --> | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add to functions.php */ | |
add_filter("login_redirect", "subscriber_login_redirect", 10, 3); | |
function subscriber_login_redirect($redirect_to, $request, $user){ | |
if(is_array($user->roles)){ | |
if(in_array('administrator', $user->roles)) return home_url('/wp-admin/'); | |
} | |
return home_url(); | |
} |