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
// HORIZONTAL DROP DOWN MENU | |
var timeout = 3000; | |
var closetimer = 0; | |
var navitem = 0; | |
function nav_open(){ | |
nav_canceltimer(); | |
nav_close(); | |
navitem = $(this).find('ul').css('visibility', 'visible'); | |
} |
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
<!-- post this code wherever you would like the related posts to be shown but usually inside single.php --> | |
<?php //for use in the loop, list 5 post titles related to first tag on current post | |
$backup = $post; // backup the current object | |
$tags = wp_get_post_tags($post->ID); | |
$tagIDs = array(); | |
if ($tags) { | |
$tagcount = count($tags); | |
for ($i = 0; $i < $tagcount; $i++) { | |
$tagIDs[$i] = $tags[$i]->term_id; | |
} |
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
-webkit-transform: rotate(-90deg); | |
-moz-transform: rotate(-90deg); | |
-ms-transform: rotate(-90deg); | |
-o-transform: rotate(-90deg); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); |
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
<?php | |
include_once(ABSPATH . WPINC . '/rss.php'); | |
$feed = 'http://example.com/feed/'; | |
$rss = fetch_feed($feed); | |
if (!is_wp_error( $rss ) ) : | |
$maxitems = $rss->get_item_quantity(3); | |
$rss_items = $rss->get_items(0, $maxitems); | |
if ($rss_items): | |
echo "<ul>\n"; | |
foreach ( $rss_items as $item ) : |
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="breadcrumbs"> | |
<a href="<?php echo get_bloginfo('url'); ?>" title="">Home</a> | |
<?php | |
$parent_id = $post->post_parent; | |
$breadcrumbs = array(); | |
while ($parent_id) { | |
$page = get_page($parent_id); | |
$breadcrumbs[] = '<a href="'.get_permalink($page->ID).'" title="'.get_the_title($page->ID).'">'.get_the_title($page->ID).'</a>'; | |
$parent_id = $page->post_parent; | |
} |
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> | |
$("ul.banner-list").tabs(".banners > div.banner", { | |
autoplay: true, | |
effect: 'fade', | |
fadeOutSpeed: "slow", | |
rotate: true | |
}).slideshow(); | |
</script> | |
<div id="branding-area"> |
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
// inside functions.php | |
function the_parent_slug() { | |
global $post; | |
if ($post->post_parent == 0 && $post->post_parent) return ''; | |
$post_data = get_post($post->post_parent); | |
return $post_data->post_name; | |
} | |
// initiate anywhere | |
<?php echo the_parent_slug(); ?> |
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
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; |