background preloader

Tips

Facebook Twitter

Wptuts

How to Make Separate RSS Feed for Each Category in WordPress. Quick Tip: Writing Simple Modular Code. In my last article, we learned a new way to use Bitly URLs in WordPress. In most of these cases we usually edit our functions.php file. Today we'll learn a new method for how we can keep our functions.php file nice and clean by using a modular approach. In this tutorial you'll learn how you can make very simple modular code. It will be simple code, and because it is modular you have to implement it manually. Why use modular code anyway? Motivation Initially, it's likely that you might think to yourself, "why should I bother doing this?

" Example 1 We will be writing a simple function and will see how we can incorporate this file in our theme's functions.php Step 1.1 So lets write a new function. As you can see this is just a standard function for registering the menus. Step 1.2 Save this file along with your WordPress theme files, or you can save it in a sub-folder if you like. Example 2 Let us do a similar example.

Step 2.1 Step 2.2 Calling the my-shortcode.php File in functions.php Conclusion. How to Install and Setup W3 Total Cache and MaxCDN for Beginners. We often get compliments from users on how fast our site loads. Everyone wants to know the secret behind a fast loading WordPress site. Aside from good web hosting and well-coded plugins, you have to make sure that you’re using proper caching and have a CDN (content delivery network). For our setup, we use a plugin called W3 Total Cache.

Due to a high volume of request, we have decided to create a step by step guide on how to install and setup W3 Total Cache for beginners. In this article, we will show you how to install W3 Total Cache and set it up properly to maximize the benefits. We will also show you how to combine W3 Total Cache wit ha CDN service to make your site load even faster. Before you begin, we highly recommend that you check performance of your site by using Google Page Speed and Pingdom Tools.

Below is the screenshot of our Pingdom results: Lets get started with our setup of W3 Total Cache. Video Tutorial What is W3 Total Cache? Installing W3 Total Cache in WordPress Minify. How to Create Simpler Login URL in WordPress for Your Clients. Display PHP Errors as Admin Alerts. The PHP language is widely adopted for many web applications like WordPress. As powerful as PHP is it does have some drawbacks, but one of the my favorite features of PHP is that it will display errors right on the web page.

The new toolbar that was introduced in WordPress 3.3 interferes with this functionality. The toolbar has a fixed absolute position which covers the first few lines of PHP errors. Options for Displaying Errors With the new toolbar covering PHP errors we need to use other options for debugging our themes and plugins. Plugins Since the inception of the new toolbar plugin developers have came up with a few plugins that can help us with this issue. All these plugins offer different features, but they all allow us to disable the toolbar.

Error logging The solution for PHP errors that is suggested by the WordPress Core Team is to use error logging. This will output any PHP errors to a file named debug.log in the wp-content folder. Display Errors as Admin Alerts e.g. E.g. Speed up your WordPress site the right way with this ultimate guide. Give your site a boost! Implement crucial optimization techniques that will improve not only your ySlow score, but your Google rank too. In this tutorial we will cover all aspects of W3 caching, ySlow, Google page speed, CSS sprites & htaccess rules, to achieve a high ySlow score like i have done on my blog. Before We Begin A quick note before we start, although this tutorial will cover everything in as much detail as is required, there will (wherever possible) be shortcuts, to save you some time. Step 1: Install the Necessary Components Install a Caching Plugin: First off, whatever caching plugin you are using, switch it off NOW!

Install a Database Manager Plugin: Next you will need another plugin called “WP-DBmanager” again search and install this making sure you have no other database plugins installed. Before we go ahead and start improving your site lets first see what were dealing with. ySlow will then check your site, tell you what’s good, what’s bad and everything in between.