Category Archives: WordPress Hacks

WP Hacks: How to update WordPress or Plugins With Stored Passwords

Most Web Hosting companies configure WordPress so that it automatically updates whenever you click on upgrade WordPress or WordPress plugins.  Some web hosting companies have this feature turned off.  If you have an VPS Hosting or Dedicated Server, ask them to install suPHP, if not you can add the following codes to your config.php file… Read More »

Category: Uncategorized

Top 10 WordPress hacks from June 2009

Cats Who Code has put together an awesome list of the top 10 WordPress hacks from June 2009. The list has some hacks that I’ve never seen before on other websites, and are pretty unique and well-worth checking-out. Here’s one, and click over to see the full list of hacks: Make your WordPress theme translatable… Read More »

Category: Uncategorized

Automatically get tr.im urls for your blog posts

Before, we showed you how to automatically get tinyurl’s on your WordPress blog. Well this time, I found a tutorial that will make your WordPress blog automatically generate tr.im url’s for your blog posts. First to do this, add the following lines to your functions.php file: function getTrimUrl($url) { $tinyurl = file_get_contents(“http://api.tr.im/api/trim_simple?url=”.$url); return $tinyurl; }… Read More »

Category: Uncategorized

How to hide portions of text to Google on your WordPress blog

Want to hide portions of text in a specific post or page from google? Well, this is probably one of the simplest things you could do, but it is often now known of and overlooked. Here are is the code that you can use to hide text from google: This text will be indexed by… Read More »

Category: Uncategorized

Display your tags in a dropdown menu

Categories can be shown in a drop-down menu with no problem whatsoever, so shouldn’t the same concept apply to that of tag clouds? Well WP Hacks and figured out a way to do just that, with very little effort. First, copy and paste the following code into your functions.php file: 1 2 3 4 5… Read More »

Category: Uncategorized

Display Today’s Date on your Blog

Want to show the date on your WordPress blog just anywhere? Well, here’s a simple little hack with just a little bit of code that you can place anywhere for the date to be shown. Here’s that code, and you can place it anywhere that suits your needs: <?php echo date(‘l jS F Y’); ?>… Read More »

Category: Uncategorized

Display the Author Who Edited a Post Last

Want to display the author who last edited any given post? Well, here’s some simple code you can use to have that show on all of your posts. To first create the function for the task that we are going to do, copy and paste the following code into your theme’s functions.php file: if (!function_exists(‘get_the_modified_author’))… Read More »

Category: Uncategorized

How to preset text in the WordPress post editor

If you’re kind of a lazy person like I am, then here’s just the tutorial for you. Juston Tadlock has perfectly shown how to preset text in the WordPress editor. What does this mean? That you can modify your current WordPress theme’s functions.php file, and with the copying and pasting of a little code, you… Read More »

Category: Uncategorized

Display the total number of users of your WordPress blog

Pro Blog Tutorials has again brought to us another very useful and practical tutorial in the WordPress realm. With this simple code and WordPress hack, you will be able to show the total number of  users for your WordPress blog, anywhere you want in your template. Just place the following code anywhere in your template… Read More »

Category: Uncategorized

Show Username of Logged-in User

If you want to show the username of a logged-in user in some place other than the meta sidebar widget that comes pre-loaded with WordPress, you can do so by placing the following code anywhere in your WordPress theme, and it will accomplish this simple task: <?php global $current_user; if ( isset($current_user) ) {     echo… Read More »

Category: Uncategorized

Display the total number of your Twitter followers on your WordPress blog

I never thought about completely implementing a Twitter follower counter within your WordPress themes’ files, but Jean-Baptiste Jung. from WPRecipes.com has come up with an excellent way of achieving such a task. Okay, so first off, copy and paste the following code, and add it to your current themes function.php file: function string_getInsertedString($long_string,$short_string,$is_html=false){   if($short_string>=strlen($long_string))return… Read More »

Category: Uncategorized

How to Get the Word Count in a Post

Thanks to WPRecipes, I have found an amazingly helpful tutorial how to get the word count in a post to show up on your index, or on your single page if you prefer. Here’s how we go about doing this. Okay, first, open up your functions.php file in your themes directory, and paste the following… Read More »

Category: Uncategorized

Create a simple site map of all of your pages

Okay, if you run a blog that spans across many different pages, there is a simple but affective way to organize that page. First off, you can create your own site map page template if you want using this tutorial, then put the following code in there to produce all of your categories and sub-categories… Read More »

Category: Uncategorized

How to Customize Your Blogs 404 Error Page

404 error pages, they can get annoying fast. Sometimes it’s a frowny-face, sometimes it’s the black and white regular one; either way, they aren’t helpful or cool at all. Well, what can you do to fix this problem? No, not hard code it in. All you have to do is install the AskApache Google 404… Read More »

Category: Uncategorized

How to Reset WordPress Admin Password Manually via phpMydmin

There are many reasons why users need to reset password manually.  The user might have forgot the long password, the site might have been hacked and the hackers changed the password.  For whatever reason, you need to change the password, this mini-tutorial will show you how to change your password step by step. Login to… Read More »

Category: Uncategorized