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
$q = new WP_Query( array( | |
'meta_query' => array( | |
'relation' => 'AND', | |
'state_clause' => array( | |
'key' => 'state', | |
'value' => 'Wisconsin', | |
), | |
'city_clause' => array( | |
'key' => 'city', | |
'compare' => 'EXISTS', |
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
$('#top-menu > ul').animate({height: "toggle", opacity: "toggle"}); |
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 | |
$args = array('date_query' => array( | |
array( | |
'week' => date('W'), | |
'compare' => '>=' | |
), | |
) | |
); | |
?> |
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 | |
function salas_add_taxonomy_filters() { | |
global $typenow; | |
// an array of all the taxonomyies you want to display. Use the taxonomy name or slug | |
$taxonomies = array('salas'); | |
// must set this to the post type you want the filter(s) displayed on | |
if( $typenow == 'evento' || $typenow == 'noticia' || $typenow == 'ementa' || $typenow == 'lembrete' || $typenow == 'aluno' || $typenow == 'paginas_privadas'){ | |
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
//Fix CPT menu highlight | |
add_filter( 'nav_menu_css_class', 'namespace_menu_classes', 10, 2 ); | |
function namespace_menu_classes( $classes , $item ){ | |
$Cpost = 'portfolio'; //Define CPT name | |
$CpostMenu = get_bloginfo('url').'/'.$Cpost.'/'; //Define CPT Menu URL | |
if ( get_post_type() == $Cpost || is_archive( $Cpost ) ) { | |
// remove that unwanted classes if it's found |
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 | |
$sticky = get_option( 'sticky_posts' ); | |
$total = 6; | |
$featured_args = array( | |
'posts_per_page' => $total, | |
'post__in' => $sticky, | |
'post_status' => 'publish', | |
'no_found_rows' => true |
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
function custom_excerpt($text = '') { | |
$raw_excerpt = $text; | |
if ( '' == $text ) { | |
$text = get_the_content(''); | |
$text = strip_shortcodes( $text ); | |
$excerpt_length = apply_filters('excerpt_length', 50); | |
$excerpt_more = apply_filters('excerpt_more', ' ' . '...'); | |
$text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); | |
} | |
return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); |
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
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter: alpha(opacity=70); -moz-opacity: 0.7; -khtml-opacity: 0.7; opacity: 0.7; |
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
background: url(../img/bg.jpg) top center no-repeat fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale')"; |
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
-webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; |
NewerOlder