by Nick | Sep 24, 2012 | Code
To make use of the new Keywords Meta Tag for Google News do the following: Add this to your header.php within the <head> tag <meta name="news_keywords" content="<?php $news_keywords = get_post_meta($post->ID, 'news_keywords', true); echo...
by Nick | Aug 5, 2012 | Code
Add the following your your footer.php file <?php $today = date("Y"); echo $today; ?>
by Nick | May 22, 2012 | Code
Add the following code to your single.php. <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' =>...
by Nick | May 21, 2012 | Code
This can be used to add your company RSS feed to your customers WordPress dashboard. Simply add this code to the functions.php file. <?php function shaken_rss_output(){ echo '<div class="rss-widget">'; wp_widget_rss_output(array( 'url' =>...
by Nick | May 15, 2012 | Code
Add this to your functions.php file and it will automatically create a meta description from your WordPress post. <?php function create_meta_desc() { global $post; if (!is_single()) { return; } $meta = strip_tags($post->post_content); $meta =...
Recent Comments