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
<p><strong>Specialties: </strong> | |
<?php | |
global $cpt_onomy; | |
$terms = get_the_terms( $post->ID, 'specialties' ); | |
echo "<pre>"; | |
print_r($terms); |
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
$args = array ( | |
'post_type' => 'studentawards', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'year', | |
'field' => 'slug', | |
'terms' => '1994' | |
) | |
) | |
); |
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
Array | |
( | |
[0] => stdClass Object | |
( | |
[ID] => 14 | |
[post_author] => 21 | |
[post_date] => 2012-10-17 16:29:48 | |
[post_date_gmt] => 2012-10-17 16:29:48 | |
[post_content] => This is the description for the second slide. | |
[post_title] => Slide 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
if ($attachments) { | |
$i = 1; | |
foreach ($attachments as $attachment) { | |
echo '<a href="#myCarousel" data-to="' . $i . '" class="carousel-nav-item">' . $i .'</a>'; | |
$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
*** How to use | |
<?php echo open_ext("https://med.uth.edu/utms-universal/utms-superinclude-topnav.php"); ?> | |
*** What you include in your functions.php file | |
function open_ext($url){ | |
$url = $url; | |
$content = wp_remote_fopen($url); | |
if ($content<>'') { | |
return $content; | |
} else { |
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
<div id="accordion"> | |
<a class="toggler"> | |
Learn More | |
</a><!--end .toggler--> | |
<div class="element"> | |
<p>This is some text.</p> | |
</div><!--end .element--> | |
</div><!--end #accordion--> | |
// Update to css |
NewerOlder