Category Archives: Wordpress Themes

Add Author to RSS Feed in WordPress

If you have multiple authors on a WordPress blog you may want to add the Author name to the RSS feed title.

Although the standard RSS feed file in WordPress contains the author if you view the RSS feed you will not be able to see the Author name through standard readers as it is not converted.

A good example is to look at a WordPress feed that uses Google Reader and you will not see the Author listed.

One solution of course is to change the WordPress Feed files, however, if you do this every time you update WordPress your change will get written over. The easier and better solution is to add the small snippet of code below to your WordPress Themes function file.

 

function wp_titlerss($content) {
global $wp_query;
$content = $content." by ".get_the_author();
return $content;
}

add_filter('the_title_rss', 'wp_titlerss');

 

 

How To Use WordPress

This is one of my favorite questions people ask. The answer is pretty much infinite.

WordPress can be used in so many ways. Whether you need a standard blog platform or an easy way to do an old fashioned website, WordPress can deliver. Between the wealth of WordPress Themes, Plugins and Widgets available you can mix and match the tools to quickly create a website or blog. It is also a great way to Park a domain while you are developing the site, you can setup a home page, with enough information to get indexed in the search engines so that when the site goes live it is already indexed for the main topic.

And to clarify, I am talking about self hosted WordPress, not hosting on WordPress.com. Using WordPress.com to host a blog is certainly an easy way to get started. Personally I just can not see giving away an opportunity to build your own site and credibility in the search engines and social networks. Yes, that means there is a cost, but the cost is so low these days, if you are gonna step out and create something, make it yours.

Here a few links to tutorials and information on How To Use WordPress.

WordPress Tutorial – How to Install and Manage WordPress http://bit.ly/6qPO58 – Source http://www.siteground.com

Getting Started with WordPress « WordPress Codex http://bit.ly/5EZhRR – Source http://codex.wordpress.org

How to use WordPress as a Truly Customized CMS http://bit.ly/81U26Y – Source http://www.idesignstudios.com

Convert Static HTML Site to WordPress Easily http://bit.ly/8RKj34 – Source http://www.cybercoded.net

WordPress Threaded Comments

I have been needing to change my comments to Threaded Comments for some time. I finally took the time to do this, and thought I would share these simple steps to accomplish Threaded Comments using the latest standard WordPress system without any plugins.

The one thing you need before you start is a copy of WordPress 2.7+ so you can copy some code. Just a little side tip here. Even though most of my sites and clients have one button install of WordPress, I keep a copy of each version that is released on a thumb drive with my other web stuff so I always have it handy. I also sync that thumb drive up to a hard drive in my office for backup!

Here are the steps to take to convert your comments to threaded comments as they appear here on my site.

  • Copy \wp-content\themes\default\comments.php from WordPress 2.7+
  • Copy \wp-content\themes\default\comments-popup.php from WordPress 2.7+
  • Copy code from \wp-content\themes\default\header.php, and place in your header file.  <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
  • Copy the Updated styling code from this great article by Chris Harrison
I modified 2 lines of code in the stlyesheet once I copied it over from Chris Harrisons’ Example. I did not like the word “says” showing up, so I turned it off, and I changed the meta link to the comment to match the rest of the site.

Turn off  ”says” :

  • From : ol.commentlist li div.vcard span.says {}
  • To: ol.commentlist li div.vcard span.says {display:none;}
Change Meta link color:
  • From: ol.commentlist li div.comment-meta a { color:#ccc; }
  • To: ol.commentlist li div.comment-meta a { color:#003366; }

That’s it, about a 5 minute process to convert to WP Threaded Comments on a WordPress blog. Pretty painless too. Big thanks to Chris Harrison for his excellent post on styling Threaded comments!

The Non Blogger

I guess that is what I am, the Non Blogger. I sat down early Saturday morning with the intention of catching up my blogs and doing some writing.

So what happened?

Someone emailed me and confirmed an idea I already was thinking about, and that sent me on a 2 day programming project, lol. So here it is Sunday night, the WordPress Plugin and WordPress Theme  I was working  on all weekend are done, but I did not get any of my blogging caught up.

For me, it comes down to enjoying the developing side of the blogs and sites more than the writing side, but that sure makes it hard to keep a site up to date.

Minimal WordPress Theme Download

The Minimal WordPress Theme can now be downloaded from here.

This is the theme I am running on this site.

I added a YouTube video hook on the Single post page. Instead of using a WordPress Plugin that would be an additional step I took my AJAX API Video plugin and incorporated it into the Functions file. Thanks to Chris Pearson for the inspiration for this idea.

By using the function file there is no need to have an additional Plugin to install. Whenever you write a post the single post page will automatically search YouTube for videos that match the title and put them in a horizontal bar under the post. These videos will play dynamically on the given page utilizing the Google AJAX VideoBar.

The Minimal WordPress Theme is excellent on Niche sites that focus on Search engine traffic. CelebrityRamble is one site that is already using the theme.

Make sure to change the Adsense to your account, and you can move the YouTube videos by relocating the ajaxapivideos() call

EDIT : This theme is also Widget Ready.