Category: Wordpress

How to Create a Custom Database Error Page in WordPress

Paste the code below into a new file. Name it db-error.php and save it on your wp-content directory. In case of a database error, WordPress will automatically use this file. Simple, yes, but more effective than the default error page at facilitating a rapid response. Again, because this is a regular PHP file, we can […]

How to remove The admin bar on the frontend in WordPress

Here is code to Remove/ disable the top wordpress admin bar from front end in WordPress. The admin bar on the frontend can be a bit of a pain if your using absolute / fixed positioning, or maybe you just hate it? Let’s get rid of it. Copy paste code in Function.php of your theme […]

How to automatically add a class to body_class if there’s a sidebar

To apply the hack, just paste the code below into your functions.php file to add automatically body class to body tag based on sidebar active.

How to automatically create meta description from content in wordpress

By default, WordPress do not add a <meta description> tag to your blog. While not necessary, some SEO experts insists that this tag is important for your site SEO. So what about generating one using your post content? Here is a cool piece of code to do it easily.

How to Stop WordPress Trackback Spam Completely

If you are an owner of a WordPress blog, then most probably you might be facing some WordPress trackback related spam in your blog and if your blog has some good amount of blog posts then this problem escalates and it’s quite difficult to control the problem.

how to add WordPress pagination without plugins

Simply paste the following code where you want to display your pagination enjoy…

Top ten most popular online blog publishing services.

A blog is a great way to express your thoughts, create a web presence for your company and provide content to Internet users. If you’re planning to create a blog, but don’t wish to get into the hassles of hosting, developing and deploying it yourself, consider creating a blog at any of the free blogging […]

How to display your latest tweets on your WordPress blog without any plugin

Simply paste the following code anywhere in your theme files, where you want the tweets to be displayed.

11 Quick Tips to Securing Your WordPress Site

WordPress is the most used open-source platform nowadays for any type of websites: whether it is blog, CMS or any other custom solution. WordPress is naturally based on PHP (among other languages), so, as a PHP developer I always make sure to cover/apply some tips for WordPress to make secure and speedup the site which […]

11 Ways To Secure Your WordPress Blog

Securing your WordPress blog is the most important thing that you must do after you have set it up on your server. There shouldn’t be any reason for you to leave your WordPress wide open for hackers to creep in and steal your information and/or destroy your data. Here are 11 ways that you can […]

How to Convert Your WordPress Blog To a Subscription Based WordPress Site

WordPress has always been a very flexible piece of software, generally the majority of people use WordPress as a blogging platform and that’s what it was meant to be, however with some tweaking involve you can convert WordPress to power up any type of site, in fact some are using WordPress as a CMS (Content […]

How to Display any External RSS Feed on WordPress web Site

Have you seen other bloggers who display their other blog’s feed on their site. You want to do it too for extra promotion and traffic. Well here is the tutorial for you. Simply paste the following code in anywhere in your theme:

Get category slug using category ID in WordPress cms

In one of my recent freelance works, I had to play a lot with categories. I was looking for an easy way to get a category slug using an ID, and I found this great function that I’d like to share with you today. First, put the following function in your functions.php file: Once done, […]

How to Get or call Parent Post or Page Title in WordPress

To achieve this trick, simply edit your page.php Or single.php file and paste the following code where you’d like your parent page title to be displayed: That’s all. Also, this code should be some inspiration for creating breadcrumbs. See you tomorrow! If you enjoyed this article, please consider sharing it!

How to Get the first image from the post and display it in WordPress

<div> Most WordPress users are using custom fields to display thumbs on their blog homepage. It is a good idea, but do you know that with a simple php function, you can grab the first image from the post, and display it. Just read on. First, paste this function on your <em>functions.php</em> file. Once done, […]

how to show posts from specific category in wordpress

Here is the code to show all post form category. more detail about customization please refer Reference link http://codex.wordpress.org/Template_Tags/query_posts