Here are some of what we think is the more useful and important WordPress hacks. Truthfully, the web nowadays is over-flowing with offers and support on WordPress hacks–everyone wants to personalize their WordPress presence to help make their blog truly stands out. There is nothing wrong with that of course, but often the hacks you find can be completely baffling to anyone who isn’t already an expert WordPress user or programmer. We hope that these WordPress hacks will be helpful to beginners who are looking for useful, easy and quick to use WordPress hacks.
1. Secure WordPress Hosting
Anybody who is only starting out using WordPress is going to be amazed with exactly how simple it is to use, but they will also have some irritating concerns regarding how safe is their blog and the files required to run it. Here are a handful of WordPress hacks that will help you ensure that your WordPress security is tight as possible to safeguard all of that data you have created and gathered. Exactly what is the one particular WordPress file you certainly do not want other people to get inside? Your “wp-config.php” file. That’s where the string for connecting with your database is stored and it needs safeguarding. Find your .htaccess file and add the following code in lines as shown:
If you’re still concerned about somebody hacking into your database and you have a static IP address, then it might be a good idea to restrict your WordPress administration access to only your precise IP address. To achieve this again edit your .htaccess as follows, but using your own static IP address of course:
2. Too Many WordPress Links
Some bloggers still think that the more links they have on a page the better it will be to rank in search engines. Links are vital, but unnecessary links can actually work against you in terms of search engine rankings. To get rid of unnecessary links, you need to edit your wp-includes/post-template.php file:
… becomes this…
3. Social Network and WordPress Hosting
No one should underestimate the value of making sure that their blogs are getting the maximum exposure through various social networks. With the two biggest social networks being Facebook and Twitter, it would careless not to include WordPress hacks that you can use. Subscribers of your blog will automatically receive an alert to a new posting. So, why not also add an automatic “blog share on Facebook” link, so that your blog posting is automatically available to your Facebook friends and can be shared by them as well. Simply add this code to your single.php file:
There already is a WordPress plugin to send new blog posts to Twitter, but what about old postings? To get your Twitter friends retweeting your old blogs, add the following code above or below the posting loop and outside the ‘div’ containing “the_content”.
4. Unique WordPress Pages
Have you ever wondered if you can make a new blog post look more unique than the next? Here’s an easy WordPress hack that can present a blog posted within the previous 24 hours in a special style sheet. Find the loop in your index.php file and make the following edits:
You will also need to edit the stylesheet in use, like this:
5. WordPress Comments
Seeing how many comments have been left on any one blog posting is good, but what about the total number of comments that have been left on your blog since it began? The number of comments left on your blog will very often be used to judge how efficient your blog is by visitors. If you can present the biggest number you have to your visitors, than the better it’s perceived. This simple WordPress hack will let you place, anywhere you like in your blog, the total number of comments that have been left on all your blog postings:
Finally, when someone leaves a comment on your blog, WordPress automatically displays an “Edit” link beside it. However, if you want to delete it or declare it as spam, you have to log in to the admin panel. Wouldn’t it be useful to delete comments or tag them as spam in the live blog itself? You can by tweaking the code that contains the “Edit” comments link. In the theme that you’re using, paste the following into your function.php file: