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
<strong>Industry:</strong><?php $pc_industry = wp_get_post_terms( $post->ID,'industry', $args ) ; print($pc_industry[0]->name);?><br /> |
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 Site Settings for Rackspace Cloud Sites | |
php_value max_execution_time 3600 | |
php_value upload_max_filesize 100M | |
php_value post_max_size 220M | |
php_value memory_limit 256M | |
# End PHP Site Settings | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
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 | |
if ( has_post_format( 'aside' )) { | |
echo '<img class="post-icon"'; | |
echo 'src="'; | |
echo bloginfo('template_url'); | |
echo '/images/post-format-aside.png" alt="Aside Post" />'; | |
} | |
elseif ( has_post_format( 'image' )) { | |
echo '<img class="post-icon"'; | |
echo 'src="'; |
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
<article class="post-1242 post type-post status-publish format-link hentry category-wordpress-2" id="post-1242"> | |
<div class="post-content"> | |
<header> | |
<img class="post-icon" src="/images/post-format-link.png?9d7bd4" alt="Link Post"> | |
<h2>POST TITLE</h2> |
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
html { | |
font-size: 93.8%; | |
background-color: #f1f2f3; | |
background-image: | |
-webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
-webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
background-image: | |
-moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
-moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
background-image: |
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
function rb_recent_posts_dashboard() { | |
?> | |
<ol> | |
<?php | |
global $post; | |
$args = array( 'numberposts' => 5 ); | |
$myposts = get_posts( $args ); | |
foreach( $myposts as $post ) : setup_postdata($post); ?> | |
<li> (<? the_date('Y / n / d'); ?>) <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
<?php endforeach; ?> |
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
// Custom login logo for wp-admin screen // | |
function pic_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login-logo.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'pic_custom_login_logo'); |
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
// replace $username= with correct username | |
function rb_latest_tweet($username = 'rachelbaker', $include_date = true){ | |
$twitter_feed_url = "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=0&screen_name=$username&count=3"; // will show 3 most recent tweets, can change value if needed // | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $twitter_feed_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
$alltweets = curl_exec($ch); |
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
/** | |
* Creating custom Testimonial Widget Area | |
*/ | |
class Testimonial_Widget extends WP_Widget { | |
function Testimonial_Widget() { | |
$widget_ops = array('classname' => 'testimonial_sidebar_widget', 'description' => 'Custom Testimonial Widget' ); | |
$this->WP_Widget('testimonial_widget', 'Testimonial Widget', $widget_ops); | |
} | |
function widget($args, $instance) { | |
extract($args, EXTR_SKIP); |
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 | |
/** | |
* Sets the post excerpt length to 40 characters. | |
*/ | |
function twentyten_excerpt_length( $length ) { | |
return 40; | |
} | |
add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); | |
/** |
OlderNewer