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( | |
'numberposts' => -1, | |
'post_type' => 'Concerts', | |
'facetwp' => true, | |
); | |
$the_query = new WP_Query( $args ); | |
?> | |
<?php echo facetwp_display( 'facet', 'state' ); ?> |
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 | |
// filter | |
function my_posts_where( $where ) { | |
$where = str_replace("meta_key = 'event_%", "meta_key LIKE 'event_%", $where); | |
return $where; | |
} |
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
http://docs.serverpress.com/article/84-how-to-open-the-desktopserver-preferences-file |
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
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' |
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_filter('send_password_change_email', '__return_false'); |
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
main(doc,op) | |
{ | |
var i, j, k, pointcount; | |
i = 0; | |
var a = op->GetDown();//count number of children | |
while(a != NULL){ | |
a = a->GetNext(); | |
i++; | |
} |
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 remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); | |
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 ); |
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
//* Use with shortcode: [menu name=”sitemap”] | |
add_action( 'init', 'my_custom_menus' ); | |
function my_custom_menus() { | |
register_nav_menus( | |
array( | |
'primary-menu' => __( 'Primary Menu' ), | |
'secondary-menu' => __( 'Secondary Menu' ), | |
'footer-left' => __( 'Footer Left' ), | |
'footer-right' => __( 'Footer Right' ), |
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
// Icon Shortcode Using Fontawesome by 3200creative | |
// to use this shortcode use the following markup [fa-icon id="option-id" class="custom-class" type="arrow" size="24" color="#ff9900"] | |
function icon_func( $atts ) { | |
$a = shortcode_atts( array( | |
'type' => 'Add Icon Type', | |
//ID is optional | |
'id' => '', | |
'size' => 'Add Size', | |
'color' => 'Add Color', |
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
/* Avatar | |
--------------------------------------------- */ | |
.avatar { | |
border-radius: 50%; | |
float: left; | |
} | |
.author-box .avatar { | |
height: 88px; |
NewerOlder