How to Highlight Author’s Comments in WordPress

If you want to make your the author’s comment stand out from the rest, simply adding a code to check if the commenter’s email is the same as the author won’t work. It has some flaws like what if one of your readers know the author’s email address? They can the blog author’s email address in their comment so their own comments are highlighted.

To fix this flaw, write a code that will check for the author’s email address and check if its the user id of the blog owner. So, only the author’s post are highlighted even if other readers use the author’s email address.

Read the tutorial here:

How to Remove URL Field Form in WordPress Comments

removeurlfieldSpammers are attracted to WordPress blogs if in your comment section has a URL field in it. Having that field is not necessary to build interesting comments, spammers take advantage of it. If you have auto approval turned on, you might be surprised to ton of nonsense comments either to promote their website, or promote a brand. Getting rid of it is a harsh and tedious job.

If you want to get rid of spam, the cheapest way possible, have a look at this blog which shows how you can remove the URL field from your WordPress comments.

Read the rest of the post here:

Display Custom Message in WordPress Registration Page

There are times where you want to inform the customers what they need to do with your WordPress registration page but you just couldn’t because registration page is not editable by default. Today, I’ll tell you a guide on how to display a custom message in your WordPress registration page. All it takes is just a few modifications in your functions.php file. Simple copy and paste the code in functions.php, edit the custom message, and you’re done. You can also remove the code if you no longer want to use it. Now your site is more customized for your customers.

Get the code here:

Add LightBox to All Your Images Automatically

Lightbox is a cool feature that should be in every images in your website so when a visitor clicks an image, the website is darkened and only the image will be shown. In this way, readers can freely return to the post without any interruptions like the image opened in the new tab or is replaced with the post that they are reading. When you want to get lightbox to all your posts especially in your old ones, doing it manually is such a pain in the neck. So, here I have a simple code snipped that you just need to put in your functions.php file to add lightbox automatically to all your images.


Get the code snippet here:

How to Customize Your 404 Page

Most WordPress themes typically come with a default 404 page whenever an invalid url is requested. Some themes show suggestions on other page in your WordPress website that are either receiving high traffic or old posts in your blog. When a visitor is greeted with a 404 error page, what they commonly do is click the back button in the browser and go over to other search results.

Customize your 404 page so that the page other than suggesting old posts, grab the reader’s attention by either showing a popular post you have or a way to grab their attention.


Read full story here:

Collection of WordPress Hacks

WordPressHacks have a wide variety of hacks that are dedicated in making a WordPress blog or website more functional,  and more useful than what the default WordPress has to  offer. Theme hacks like adding a store to your blog, adding external RSS feed, preventing Google from indexing your images are some of the things WordPressHacks has in store. There are also post hacks which will let you show only the post excerpt, add daily blog post automatically via, comment hacks like changing the default image gravatar, WordPress page hacks, blogroll hacks and all other hacks you can think of.

Read full hack list here:

Display Pingback/Trackback Counts in Admin Post Columns

By default, the post list in your WordPress only displays comment count but does not display pingback or trackback counts. Pingbacks/trackbacks are important to get your blog popular and to know who is sharing your post. It also knows how many sites are share your link. There are good and bad pingbacks/trackbacks. Good pingbacks/trackbacks help make your site popular but bad ones drag you down. Viewing this in a convenient location in WordPress reminds you that you need to check this often the way you check at comments. All you need is to copy and paste simple code, suggested by below functions.php and save it. Once saved, your pingback/trackback counts are displayed within admin post columns.

Read full guide here:

WordPress Hack: Sliding Doors in WordPress Navigation

This WordPress hack lets you use CSS codes to create a sliding door in navigation for your WordPress website. By default, WordPress core functions:  wp_list_pages() and wp_list_categories()  do not allow you to use the required span tag for this technique to work successfully. This hack will let you bypass this restriction and use sliding doors in your WordPress theme.

This hack will not let you modify WordPress core to apply this technique. Cores aren’t made to be modified and can cause a lot of headaches if you do it especially during WP update. The technique is done by using PHP. The php preg_replace() function is the trick to make this hack work in your WordPress theme.


Read full article here: