This file contains 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 |
This file contains 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 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 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 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 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 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
<ul> | |
<?php $temp_query = $wp_query; query_posts("showposts=10&cat=-1000"); ?> | |
<?php while (have_posts()) { the_post(); ?> | |
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to “<?php the_title(); ?>”"><?php the_title(); ?></a></li> | |
<?php } $wp_query = $temp_query; ?> | |
</ul> |
This file contains 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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$(".fancybox").fancybox(); | |
$(".fancybox1") | |
.attr('rel', 'gallery') | |
.fancybox(); | |
$(".fancybox").fancybox({ | |
helpers : { | |
title: { |
This file contains 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
// Middle Initial | |
<?php if ($middle_intial != '')) { | |
echo '<h3>' . $first_name . ' ' . $middle_initial . '. ' . $last_name . ', ' . $the_titles . '</h3>'; | |
} else { | |
echo '<h3>' . $first_name . ' ' . $last_name . ', ' . $the_titles . '</h3>'; | |
} |
This file contains 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
Carlos, | |
I added a third array to the initial setup of the Faculty cpt. | |
The file you need to edit is: /includes/cpt/faculty.php | |
$faculty = register_cuztom_post_type( | |
'faculty', | |
array( | |
'has_archive' => false, | |
'supports' => array ('title', 'excerpt', 'thumbnail'), |
OlderNewer