Filter items with CSS, only. No JS! Uses :checked and ~.
A Pen by Caroline Orlando on CodePen.
Filter items with CSS, only. No JS! Uses :checked and ~.
A Pen by Caroline Orlando on CodePen.
<?php | |
$date = strtotime ( get_the_time('Y-m-d g:i:s') ); | |
$blogtime = strtotime ( current_time( 'mysql' ) ); | |
if( $blogtime - $date <= 86400 ) : | |
echo '<span class="label label-new">New!</span>'; | |
endif; | |
?> |
<?php | |
function get_instagram_data( $url ) { | |
$ch = curl_init(); | |
curl_setopt( $ch, CURLOPT_URL, $url ); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); | |
curl_setopt( $ch, CURLOPT_TIMEOUT, 20 ); | |
$result = curl_exec( $ch ); | |
curl_close( $ch ); | |
return $result; | |
} |
<?php | |
$queried_object = get_queried_object(); | |
$term_name = $queried_object->name; | |
$users = get_users( array( 'meta_key' => 'school_name', 'meta_value' => $term_name, ) ); | |
// users have user_meta stored that matches (exactly) the "school" and "sorority" taxonomies | |
// so let's get all users based on their CURRENT taxonomy association | |
// meaning, that if we are on taxonomy "School" > term "Harvard University" | |
// we'll get all users that have meta_key "school_name" AND meta_value "Harvard University" | |
<div id="wrap"> | |
<div id="content"></div> | |
<div id="sidebar"></div> | |
</div> |