How to Automatically Empty Trash in WordPress
Trash is the new feature in wordperss and it arrived in wordperss 2.9 whenever someone deletes a post, page, comment etc. that doesn't gets deleted permanently that is stored in trash so if the deletion is done by mistake then the deleted item can be restored.
But when you delete lots of items it becomes bulk of unusable data stored in your wordpress database.To get rid of this you can opt to choose empty trash after certain interval of time to.
Here is a small tip to automatically empty trash in wordpress follow the steps below to do the same.
Open wp-config.php file located at the root of your WordPress install and paste the following code:
define('EMPTY_TRASH_DAYS', 10 );
The parameter '10' is when to empty trash, in days, you can change it as per your need.
How to Add SEO Titles without Plugin in WordPress
There are many SEO plugins are there which are nowadays being used to search engine optimize wordpress powered blog or website.There are other ways too which one can use to optimize their content for search engines without installing plugins in wordpress.
If you want to optimize title of your posts or pages in wordpress then its necessary to add SEO titles to the posts or pages.Normally browser title is same as of your article title.
To optimize titles its needed to have separate SEO title which are only for browsers and search engines and the title of your post is different.To do this without plugin follow the steps below.
Title structure in header.php of your current wordpress theme may be something like the code given below.
<title> <?php wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; ?> </title>
To use different titles for browsers and search engines custom fields will be used called 'seotitle' and whenever you specify this custom field in your post or page the text you entered will be used as browser title.
Replace the code above with the code given below and you are done.
<title> <?php global $post; if (is_singular() && ($title=get_post_meta($post->ID, 'seotitle', true))) echo $title; else { wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; } ?> </title>
Now whenever you will write a post or create a new page there will be a new custom field named 'seotitle' which you can specify to use different title as browser title.

The screen shot above shows the same custom filed area.
How to Install WordPress on Windows
We have already covered a quick guide to installing wordpress and today we will show you how to install wordpress on windows.To Install wordpress on windows you will need Wamp Server and WordPress.Wamp is used to setup local server on windows and it automatically configures apache, php and mysql after installation.
Lanch Wamp setup for installation and it will appear like screenshot below.

Complete the Installation.Wamp default installs in C:wamp directory, navigate to C:wampwww and extract your wordpress there and then start Wamp server by clicking WampServer icon on desktop then open your browser and type http://localhost/ in address bar and press Enter key then click on wordpress and follow the instructions to install wordpress in our previous post How to Install WordPress a Quick Guide.
What People Are Searching for on Technology:
how to install wordpress on wamp server.,How to Install WordPress A Quick Guide
Here is the quick guide for Instaling wordpress for self hosted blogs after follwing thse stesps wordpress should be installed.
1. Download and unzip the WordPress package, if you haven't already.
2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
3. Rename the wp-config-sample.php file to wp-config.php.
4. Open wp-config.php in your favorite text editor and fill in your database details as explained in Editing wp-config.php to generate and use your secret key password.
5. Place the WordPress files in the desired location on your web server:
- If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
- If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.
6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
- If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
- If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php
That's it! WordPress should now be installed.
What People Are Searching for on Technology:
install wordpress in subdirectory.wordpress install guide.,Use File Compression Methods to Improve Performance of WordPress
An excellent way to improve performance while also saving bandwidth is to compress your web pages and other site content. Compression does exactly what you would expect: files and content are compressed by the server in order to reduce their overall size.
Once the content is received by the browser, it is immediately uncompressed and displayed properly. This results in faster loading times and reduced bandwidth usage.
While a complete excursion into the realms of file compression is well beyond the scope of this post, here are a few ideas to get you started in the right direction:
• File compression via Apache's gzip module - for servers running older versions of Apache, an easy and effective way to compress your content is to enable mod_gzip via your server configuration or root .htaccess file.
• File compression via Apache's deflate module - for servers running newer versions of Apache, an easy and effective way to compress your content is to enable mod_deflate via your server configuration or root .htaccess file.
• File compression via PHP - It is also possible to compress your files using PHP's output buffer. This method usually involves adding a small snippet of code to the beginning of your theme's header.php file.
• Manual file compression - For JavaScript, CSS, and other static files, it is also possible to implement compression manually. This typically requires gzipping the files in question and then delivering them via targeting script to supportive browsers.
• Minifying CSS and JavaScript files - Apart from compressing the actual file, it is also possible to compress the contents of your CSS and JavaScript files. This process is called "minifying" and usually involves removing as much white-space as possible. For JavaScript, there are also additional techniques that further reduce the size of the file.
There are also some great online services for compressing CSS and JavaScript file content, including these great sites:
• YUI Compressor - http://developer.yahoo.com/yui/compressor/
• Dean Edwards Packer - http://dean.edwards.name/packer/
• JavaScript Compressor - http://javascriptcompressor.com/
• Another JavaScript Compressor - http://www.xmlforasp.net/JSCompressor.aspx
• Styleneat.com - http://styleneat.com/
• JSMin - http://crockford.com/javascript/jsmin
While there are many different ways to take advantage of file compression, your implementation will depend on the tools and resources available to your server. If possible, enable mod_gzip or mod_deflate and forget about it. Otherwise, if these modules are not available to you, there are many other solutions available.
How to Choose Perfect Plugin for WordPress
The key to finding the perfect plugin is research. Taking the time to investigate potential plugins ensures somooth implementation and prevents unnecessary headaches in the future. Of course, many of the more popular plugins (such as Akismet, XML Sitemaps, Database Manager) may be on your list before you even install WordPress, but even so, you may be surprised at the growing number of alternatives.

Here are some tips to help you choose the perfect plugin:
1. Determine the need. What do you want the plugin to do for you?
2. Check the WordPress Codex. See if there are any suitable matches at the official plugin repository. It is generally well-documented, well-organized, and up-to-date.
3. Regardless of what you find at the Codex, search the Web for alternatives. Many developers deliberately choose not to list their plugins at the Codex.There are some great plugins that are only available directly from the author.
4. Check the compatibility of the plugin before installation. Make sure that it works with your version of WordPress.
5. Check the support of the plugin. Is there a way of getting help if you need it? Is there a forum? Does the author appear to be responsive?
6. Determine how frequently the plugin is updated. This may provide clues as to the level of commitment that may be expected from the plugin author.There is nothing worse than relying on a plugin that fails to evolve with new versions of WordPress.
7. Is the plugin well-documented? Does the documentation explain everything adequately? Is there a change log or history of changes for the plugin?
8. Search the Web for specific issues related to the plugin. Dig for the stuff that isn’t mentioned on the plugin page. Search for phrases such as “problem with name-of-plugin”, “name-of-plugin issues”, or even “name-of-plugins sucks.” Also research the performance of the plugin so it doesn’t slow you down.
9. Check the files. Once you have found that perfect plugin, check its files carefully. Look for anything that seems out of place. Are there extraneous files? Is documentation included? Examples?
10. Check the code. If you understand PHP, (X)HTML, CSS, and/or JavaScript, take a good look at the code and do your best to see if everything is legit. Keepan eye open for anything that cries foul, such as spam links, unreasonable licenses, and so on.
While you may not need to perform all of these steps for every plugin you use, keeping these things in mind will help you to choose a perfect collection of plugins for your site. Again, the key to maximizing your experience with a plugin involves taking the time to research and understand its purpose and functionality.
How to Optimize CSS and JavaScript in WordPress
A significant amount of optimization can be accomplished by focusing on the code and content used to create the user interface. By optimizing the content of JavaScript, CSS, and even HTML files, you can reduce file size, save bandwidth, and reduce loading times for visitors.

Here are some key strategies that will help you to optimize various types of code:
• Keep your code clean! - Eliminate unnecessary comments and superflous markup. Focus on clean, well-written code and you will have a strong foundation for optimizing your pages.
• Keep HTTP requests to a minimum - One of the best ways to improve the loading times for your pages is to reduce the number of HTTP requests to the server. Every JavaScript file, CSS file, and image requires its own HTTP request and thus slows down loading time. By consolidating multiple CSS and JavaScript files and implementing "sprite" techniques, you can reduce the number of HTTP requests and increase the performance of your site.
• Use sprites for images - Put simply, sprites are multiple images consolidated into a single image. By strategically placing different images in a single image file, we decrease latency in visual display while also reducing the overall number of HTTP requests.
Sprites are commonly used together with CSS to create stunning and effective rollover effects, background imagery, and more. • Include your stylesheets at the top of your pages - When including external stylesheets in your pages, be sure and include them at the top of the page in the <head> section. This will enable browsers to render your pages progressively, which makes them appear to load much faster than they would otherwise.
• Include JavaScript at the bottom of your pages - When including external JavaScript files, placing them at the bottom of the page, just before the closing <html> element, ensures that your clients' browsers are able to download the maximum number of components, decreasing load times and improving performance.
• Validate your code! - One of the best ways to ensure that you are adhering to the principles of modern web design and web standards is to check your code with an online validator. After checking your page, the validator will return a report telling you either that your code has passed with flying colors, failed miserably, or anything in-between. If there are problems with your code, the validator will explain each issue and provide suggestions for fixing them.
There are many different validators available depending on code type, however, the W3C (World Wide Web Consortium) provides just about everything you need right under one roof.
W3C (X)HTML Validator - http://validator.w3.org/
How to Reduce Number of HTTP Requests in WordPress
One of the biggest factors of site performance is the number of HTTP requests that your pages are making to the server. Each request for a CSS file, JavaScript file, image, or any other external file requires a separate call to the server, which then must acknowledge, process, and return the requested file.
When you have too many files linked to a document, either in the <head> area or in the content itself, Your site's performance may be negatively affected. This effect is easily seen by comparing the load times of sites that include many different CSS and JavaScript files with sites that have taken appropriate measures to reduce the overall number of requests made by their pages. Here are a few tips for reducing the number of HTTP requests made by your site.
• Eliminate unnecessary files - Anything that you are calling from your web page that is not absolutely essential should be cut out from the picture. When possible, replace design-related images such as rounded borders with pure CSS alternatives.
• Consolidate CSS files - Instead of linking to five different CSS files, combine them into a single, optimized file. If you're not sure, check your source code - you may be surprised to find that some of your plugins are calling additional CSS files.
• Consolidate your JavaScript files - As with your CSS files, combine multiple JavaScript files into a single, optimized file. Check your source code and consolidate anything that you can get your hands on. Just make sure to preserve the order of appearance of the various scripts.
• Use image sprites - If your theme design makes heavy use of images, the number of HTTP requests may be very high indeed. Check your design and look at the images being used.If any of them can be combined into a single image, then try to do so.
Granted, combining images into so-called "sprites" is a bit of a dark art, but with a little research and some practice, you will find the reward of improved performance to be well worth the effort.
A great example of image sprites is seen with social-media icons that have been combined into a single file and then positioned differently for each link with a little CSS. This one technique can drastically cut down on requests and help speed things up.
7 Things To Do After Installing WordPress
After installing WordPress there are several things worth doing to get WordPress ready to go. These are just options to change in the WP-Admin system, one or two essential plugins to install and some other modifications and checks. Here’s a checklist, along with explanations of what each does:

Activate Akismet Spam Protection
Akismet is a spam filter plugin for comments. It is automatically installed with WordPress, so you simply need to go to your WP Admin Dashboard and click on Plugins, find Akismet in the list and click Activate. A message will appear asking for your WordPress.com API key, simply click the link and create a WordPress.com account and then copy and paste the key back into your Dashboard.
Install WP-Cache Plugin
When a page is accessed on your site, WordPress performs some database lookups and executes a bunch of code. Ordinarily this isn’t a problem, however if you happen to have a lot of traffic all at once, this can slow your site right down. WP-Cache is a plugin that caches your pages periodically to dramatically reduce the load on the WordPress server.
Once installed, click on Plugins in the Dashboard and click Activate. You then need to click on Options in the dashboard menu and find WP-Cache in the menu. This leads you to a page where you can enable the caching. Don’t enable just yet, because it’s best to do this after you install your theme and have everything working, otherwise you can sometimes have trouble testing changes.
Note that to get WP-Cache working you may need to create some directories for it to write to. The plugin will give you details of
what to do.
Set Permalinks
Every post you create has a permanent web address that WordPress creates called a permalink. You can select how WordPress should structure your Permalinks by clicking on Settings in the dashboard menu and then clicking on Permalinks.
There are five options to choose from:
- Default – The default URL structure is a mix of odd characters and ID numbers
- Day and Name – Suitable for news and time centric blogs
- Month and Name – Suitable for news and time centric blogs
- Numeric – An incrementing number rather than the post’s actual title.
- Custom – By specifying a variable in %% signs you can choose the structure
A good format to use is to click on Custom and write:
/%category%/%postname%/
This will create links that have the category of the post and title of the post in the URL. These links will not only be more readable and memorable, but are also better for search engines.
WordPress uses a file called .htaccess to create the permalinks, if this is not writable by the server, WordPress will give you instructions on creating the file yourself.
Update Your Profile
Click on Users > My Profile in the WP-Admin menu and take a moment to fill out your profile. You may wish to untick ‘Use Visual Editor When Writing’ if you prefer to write in HTML as the Visual Editor has been know to mess with code, though more recent versions of WordPress are getting better in this department. This is just a preference however.
After you click Update, go back and find the select box which reads “Display Name as” and select a new option other than ‘admin’.
Make Sure File Uploads are Working
One of the neatest things about using WordPress is that when you are creating a Post you can upload files directly in WordPress and not need to ever touch your FTP program. This is great if you have multiple writers or non-tech writers, however you may need to double check that uploads are working on your server.
In WP-Admin, click on Posts > Add New to bring up the Add New Post screen then click the image icon to add assets using WordPress’ Uploader. Enter a file and try uploading. If all goes to plan the file will appear there successfully. If not, you will most likely need to create a directory for the upload facility to upload to, or set permissions for the directory to be writable. You can do this through your FTP program, the error message will tell you what folders to create.
Options for the uploads are controlled via Settings > Miscellaneous in the Dashboard.
Install Sitemap Plugin
The Sitemap plugin automatically creates an XML sitemap prepared to Google’s specification and then contacts the Google servers every time you create a new post or change the sitemap.
Clear WordPress and Create Categories
WordPress comes with a lot of default content in the form of a sample Post, a comment, categories and a blogroll. Although these can be quite good for testing, generally speaking you will want to go through, delete them all and then create your own content.
The 7 things described above are the essential things which should be done after installing wordpres.
Facebook is the largest social network with millions of registered users if your content is shared over facebook by many facebook users that will gain good amount of traffic.