If you’re using WordPress both as a blog and as a mobile website, you might need to be able to detect when you’re currently on a iOS or Android devices . Here is a custom WordPress conditional tags to do detect it.
By default,WordPress comes with a version of jQuery built in, but using that version jQuery means that new visitors to your site will take long time to load the file when they first visit your page. In fact,a number of users have already downloaded a version of jQuery via Google’s hosted version, so you can take advantage of Google AJAX Libraries content delivery network to serve jQuery to your users directly from Google’s network of datacenters.
A rather unpleasant problem with WordPress sites is that it has no option to easily reaarange the order of category. Though, you can use a custom menu, for some sites you have to reaarrange the order of your categories. This code snippet will tell you how to do it simplely.
Have you ever need to access your WordPress data and run a loop outside of your WordPress website? Here’s a code snippet which allow you to run a WordPress loop on any PHP file, even outside of your WordPress website.
It can be very useful to make each author to only see his/her own posts in the dashboard post list,specially for large users based on multi-author website. Here is a simple code snippet to do it.
Wpcoke was down for “Error Establishing a Database Connection” last for many days,that make me very upset because I didn’t change anything on the WordPress blog.With this issue on my site,I find many possible ways to fix it in the process of detecting and fixing the problem.In this article, I’v compiled a list of solutions to show you how to fix the error establishing a database connection in WordPress.
WordPress generate the slug (url) from your post title by default. It do not remove any words, even shorter ones which don’t add any value to your seo. Here’s a super useful tip to automatically remove short words from your urls no larger than three characters long eg: in, and, but, is, etc.
By default, WordPress does not add a rel=”nofollow” attribute to external links within post content automatically. If you want to do it, here is a simple snippet to force WordPress to add the rel=”nofollow” attribute to every external link in the content.
WordPress uploader do not support the SVG format in WordPress 3.5,As this file format is becoming more and more popular theses days, here is a simple code snippet to add SVG upload to your WordPress install.
Custom post types in WordPress allows you to hold and display many different types of content. Here’s a super useful code for those who frequently work with custom post types: check if the current post is a custom post type function.