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 | |
/** | |
* Add rel=nofollow to wp_list_categories | |
* @link http://www.billerickson.net/adding-nofollow-to-category-links/ | |
* @author Bill Erickson | |
*/ | |
function add_nofollow( $text ) { | |
$text = stripslashes($text); | |
$text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text); |
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 | |
/** | |
* Create Rotator post type | |
* | |
* @link http://codex.wordpress.org/Function_Reference/register_post_type | |
* | |
*/ | |
function be_register_ebook_post_type() { |
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
<object width="340" height="206"> | |
<param name="movie" value="http://www.youtube.com/v/LV2imPhUdMw&hl=en_US&fs=1&"></param> | |
<param name="wmode" value="transparent" /> | |
<param name="allowFullScreen" value="true"></param> | |
<param name="allowscriptaccess" value="always"></param> | |
<embed src="http://www.youtube.com/v/LV2imPhUdMw&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" | |
height="206" wmode="transparent"></embed> | |
</object> |
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 | |
/** | |
* Add Transparency to oEmbed videos | |
* | |
* @link http://www.billerickson.net/wordpress-video-menu-hidden-fix/ | |
* @author Bill Erickson | |
* @param string $video embed code | |
* @return string modified embed code | |
*/ |
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 | |
/** | |
* Facebook Like on Single Posts - Thesis | |
* | |
*/ | |
function facebook_like_single() { | |
if( is_single() ) | |
echo '<iframe src="http://www.facebook.com/plugins/like.php?href=' . get_permalink() . '&layout=button_count&show_faces=true&width=250&height=20px |
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 | |
/** | |
* Facebook Like on Single Posts - Genesis | |
* | |
*/ | |
function facebook_like_single() { | |
if( is_single() ) | |
echo '<iframe src="http://www.facebook.com/plugins/like.php?href=' . get_permalink() . '&layout=button_count&show_faces=true&width=250&height=20px |
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 | |
/** | |
* Ad Shortcode | |
* @link http://www.billerickson.net/using-shortcodes/ | |
* @author Bill Erickson | |
* | |
* @return string ad | |
*/ | |
function be_ad_shortcode() { |
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 | |
/** | |
* Button Shortcode | |
* @link http://www.billerickson.net/using-shortcodes/ | |
* @author Bill Erickson | |
* | |
* @param array attributes | |
* @param string button text | |
* @return string button |
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 | |
/** | |
* Create Price Range Taxonomy | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/wordpress-custom-taxonomies/ | |
* | |
*/ | |
function be_register_price_range_taxonomy() { |
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 the_terms( $post->ID, 'frameworks', '<p>Framework: ', ', ', '</p>' ); ?> |