How to Highlight Author’s Comments

There are 2 ways to highlight author’s comments, one is use highlight author comments wordpress plugin, another idea is without wordpress plugin. If you don’t want to use wordpress plugin to highlight author’s comment, you can follow the below few simple steps.

First, you need to open styles.css and add the following into this file.

.authorstyle { background-color: #B3FFCC !important; }

Second, open comments.php, find and locate the following code.

<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"></li>

And then replace with

<li class="<?php if ($comment->user_id == 1) $oddcomment = "authorstyle"; echo $oddcomment; ?>"></li>

Please note that you must change 1 to the user id of the author. Thanks to Matt Cutts for this tutorial.

How to Exclude Certain Categories

There are 2 ways to exclude certain categories from your blog, one is use wordpress plugin named Advanced Category Excluder. This plugin was born because there was a no other real alternative to enable content sparationd and some CMS like functionalities in WordPress. The main goal was, to enhance WordPress’s functionalities, to hide some unwanted categories, from defined parts of the blog.

The alternative way is without plugin, you can add the below code inside the loop then it will work.

<?php
if ( have_posts() ) : query_posts($query_string .'&cat=-1,-2'); while ( have_posts() ) : the_post();
?>

4 Things to Do If WordPress Plugins Broken Your WordPress Blog

What will you do if wordpress plugin broken your wordpress blog? I believe that most people have experienced this problem before, and how you overcome your problem? I remember when my wordpress blog was unable displayed properly after installed particular wordpress plugin, so I deleted all the wordpress files, wordpress themes, wordpress plugins, and then I upload all the files again. Anyway, it is work fine finally.

If you can’t display your wordpress blog after installed particular wordpress plugin, you can follow the below steps to solve this problem.

1. De-active the Plugin
Try to de-active the wordpress plugin that you have installed just now.

2. Rename the Plugin via FTP
If it is crash by admin area and caused you can’t de-active the plugins, then you can rename the plugins via FTP.

3. Delete the Plugin via FTP
If simply renaming the plugin was not enough, try to delete it completely.

4. De-activate all the plugins via PHPMyAdmin
Some plugins will alter tables in your WordPress database when you activate them. As a result your blog might keep crashing even after you delete the plugins via FTP.

If that is the case, you will need to log into cPanel, and open the PHPMyAdmin interface. Then select the WordPress database, and browse inside the “wp-options” table. Look for the “active_plugins” column, and edit it. Inside the “options_value” field you will find something like this:

a:31:{i:0;s:13:"AddMySite.php";i:1;s:19:"akismet/akismet.php";
i:2;s:23:"all_in_one_seo_pack.php";i:3;s:16:"authenticate.php";
i:4;s:28:"breadcrumb-navigation-xt.php";i:5;s:18:
"codeautoescape.php";i:6;s:37:

These lines represent the active plugins in your blog. Delete them all and save. This should automatically de-activate every plugin. Now check if your blog is live again, and if the admin area is working. They should be.

/// Source

WP Cache – Speed Up Your Blog Pages Loading

If you have problem with hosting service or your wordpress blog has taken lots of time for loading, perhaps you can consider to install WP Cache wordpress plugin to generate static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.

My web hosting is quite reliable,so far I don’t think I will need this plugin at this moment. If you need to speed up the loading of your blog and your blog always hit Digg.com’s frontpage, then you are encourage to activate this plugin.

How to Display Random Posts on Your Sidebar

Many readers seldom browse through our old post to read them out, but installing wordpress plugins like Pagenavi and Related Posts can help to give a new life for your old posts. There is another way to make your old posts have a good chance to read by reader, that is to display random posts on your sidebar.

To display random posts on your sidebar, simply copy and paste the following code to your sidebar.php.

<?php
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) :
while (have_posts()) : the_post();
the_title();
the_excerpt();
endwhile;
endif; ?>

How to Display Feedburner Subscribers in Plain Text

Feedburner came with feed count banner, but if you think this banner doesn’t match your website design or you want to display Feedburner subscribers in plain text, this is possible!

Copy and paste the following code into your template, for example sidebar.php, replace feedburner-id with your Feedbuner username. This script will grab you the feed count in numbers.

//get cool feedburner count
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id";

//Initialize the Curl session
$ch = curl_init();

//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);

//Execute the fetch
$data = curl_exec($ch);

//Close the connection
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count

Now paste this anywhere you want and it’ll display a Feedburner subscriber count in text.

echo $fb;

Source from Hongkiat

Free WordPress Theme – FREEmium

Freemium theme has great design and features than some other premium themes don’t have. You can check out its wonderful features as below:-

  • XHTML 1.0 Transitional
  • jQuery menu
  • quick submitting to web2.0 websites support
  • flickrRSS plugin support
  • threaded comments support
  • feedBurner subscribe via email support
  • a lot of advertising spots (125×125, 120×600, 300×250)
  • 2 widget ready sidebars
  • free for commercial & non-commercial use

This theme definitely free for download, you don’t need to pay any cent then you can enjoy to use this great theme which can compare with some other wordpress themes.

Check out the Demo and Download for free now!!!

How to Avoid Duplicated Comments Submitted

This is one way to combat spam comments if you can avoid duplicated comments are submitted on your posts, you can do some code modification as below in comments.php file. Why people post double comments because sometimes they are not aware that their comment is under moderation mode. Anyway, if you found your theme don’t have this option, then you can open comments.php and do some code modification.

1. Open comments.php and find the following code.

<p>
<input name="submit" type="submit" tabindex="5" value="<?php _e("Say it!"); ?>" />
</p>

2. Replace with

<p>
<blockquote>
Comment moderation is in use. Please do not submit your comment twice — it will appear shortly.
</blockquote>
<input name="submit" type="submit" tabindex="5" value="<?php _e("Say it!"); ?>" />
</p>

How to Make Your Title Tag SEO Friendly

WordPress title tag also plays important role in SEO, it telling the search engine spider what your site covered, and allows your site to be indexed based upon the correct and most relevant keywords. If your site has good seo, then you will have lots of organic traffic from various search engines. So how to make your wordpress title tag SEO friendly?

Open header.php file, find the <title> tag, and replace it by the following code.

<title>
<?php if (is_home () ) {
bloginfo('name');
} elseif ( is_category() ) {
single_cat_title(); echo ‘ – ‘ ; bloginfo('name');
} elseif (is_single() ) {
single_post_title();
} elseif (is_page() ) {
bloginfo(’name’); echo ': '; single_post_title();
} else {
wp_title("",true);
} ?>
</title>

This code will generate title tags according to the following model:

  • Blog homepage -> display blog name.
  • Category page -> display the category name and the blog name.
  • Article page -> display the article title.
  • Static page -> display the blog name, and the page title.

14 Picked Premium WordPrses Theme Websites

Finding a right theme for your blog is necessary in terms of building traffic, blog personality, readability and etc. There are lots of premium themes that you can search from google or even find the affiliate links and advertisement from other blogs, but how many of those premium wordpress themes have good functionality, quality design and sell at reasonable prices?

I have dig out 15 premium wordpress theme websites and they have quality design premium wordpress theme that worth to buy. Check them out as below:-

1. ThemeForest – is a marketplace for buying and selling website templates and CMS themes for all sorts of products, like WordPress, Drupal and Joomla.

2. Woo Themes – has many talented designers consistently create some of the best WordPress themes.

3. Elegant Themes – amazing designs and top-notch service that author was looking for a good, functional theme for his website and he stumbled upon Elegant Themes.

4. I-Themes – offers the best business WordPress themes for using WordPress as a CMS.

5. Studio Press – are perfect for a small business or an individual looking to establish their online presence with WordPress.

6. Natty WP – developing professional wordpress themes and provide efficient support of our templates. Join the club and choose the membership that suits your needs.

7. Premium Themes – aims to provide easy, affordable and superior quality wordpress solutions for every niche.

8. WP Remix – offers WordPress as CMS experience.

9. Quommunication – one of the best open-source CMSes out there if you haven’t already.

10. Omni Theme – great for MySpace or Facebook users that are looking for their own website or blog with a more professional and custom look.

11. classipress – is the first and only professional classified ads theme for WordPress. They call it the Craigslist for WordPress.

12. Press75 – offers professional quality WordPress themes with cutting edge features, customization and management options.

13. One Theme – is Multiple Premium WordPress Themes, designed for different WordPress blog genres

14. WP Now – purchase professionally designed premium wordpress themes from WP Now. Give your blog a face-lift today with the best WP Themes online.