add different background image to each wordpress posts

WordPress tutorial, add different background image to each wordpress posts. You can change the background images for each wordpress post or change color.  you can change the background color also. Some times this can be doable through CSS also. But here I am going to give you very simple technique.

add different background image to each wordpress posts

Following code you just need to place in your single.php file.

 


if(is_single('17')){
// When Post 17 (ID) is being displayed.

echo "<style>
body{
background: #000 url(images/bgbody.jpg) top center no-repeat;
}</style>";
}

This way you can add the different background image to each wordperss post.

add different background image to each wordpress posts
add different background image to each wordpress posts

 

how to hide wordpress login page error messages

wordpress tutorial, how to hide wordpress login page error messages. Here in this article We are Hiding wordpress dashboard login error is very basic thing for keep away hackers.

how to hide wordpress login page error messages
how to hide wordpress login page error messages

Hiding wordpress dashboard login error is very basic thing for keep away hackers. Whenever you and any hackcer are trying to login using the correct username but with the wrong password, that will give you a message saying “Error: Incorrect Password.” hacker will got the clue that the username entered is in the system, and that they simply need to crack its password. Same with username also you will got following message.
“Error: Invalid username”
For avoiding this thing you just need to open your functions.php file and put the following code in that file

add_filter('login_errors', create_function('$a', "return null;"));

This hack will remove the WordPress error by displaying nothing when a login is incorrect.

 

how to serve wordpress images from subdomain

creating sub domain for wordpress images is best way to increase your wordpress site speed. We given steps to, how to serve wordpress images from sub domain. Many shared hosting and wordpress bloggers and  websites are using the apache web server for hosting the wordpress sites. Apache Web server is having his own rules and behavior. By default when you open webpage of your website. That time you are making so many requests to apache web server with same domain name. That will create queue to apache web server with same domain name.

how to serve wordpress images from subdomain

For reducing the load time you should keep image file on different sub domain. Means though image subdomain you can send a parallel request to Apache web server. It will reduce the concurrent connections to web server. WordPress provides the functionality to set different domain or sub domain for images.

In this article I will show you how easily you can set the wordpress images from sub domain. First create subdomain through your control panel. Use following step for creating subdomain.

how to serve wordpress images from subdomain
how to serve wordpress images from subdomain

I recommend to create the images subdomain because images subdomain is good for SEO. Here I created the purabtech.in/files/ subdomain for my images. Then set your wordpress images path in document root setting. Normally your wordpress images are stored in wp-content/uploads directory. You can use following setting for setting the document root.

how to serve wordpress images from subdomain
how to serve wordpress images from subdomain

After creating subdomain for images and setting up the correct document root for images subdomain. Go to your wordpress admin panel. From right side panel you should go to settings -> Media panel. This page will look like as follows:

how to serve wordpress images from subdomain
how to serve wordpress images from subdomain

In “Full URL path to files” textbox put your image subdomain name and click on save changes button. Uncheck the organize my uploads into month- and year-based folder option because which is not good for SEO purpose.

After this your images will come from image subdomain but old uploaded image files will still come from older location and same domain. For changing the older images file location and domain information you should use the following steps.

Go to your Mysql databases and select the your wordpress database. You can use the phpmyadmin sql manager for this or you can use command prompt for this if you are having dedicated hosting server. If you taken shared hosting then I recommend to use PhpMyAdmin.

Use following two SQL query: (Note: You should use your images subdomain and your domain name in SQL query)


UPDATE wp_posts SET post_content = REPLACE(post_content,'http://images.purabtech.in/','http://images.purabtech.in/');

UPDATE wp_posts SET guid = REPLACE(guid,'http://images.purabtech.in/','http://images.purabtech.in/');

After this your old images files will point to images subdomain. If your images and wordpress website is old then google and other search engines already indexed your images. So We need to write the redirection rewrite rule for images in your .htaccess file. This file you will find in your Root directory of wordpress installation.

Use following line of code in your .htaccess file.


RewriteEngine On
RewriteBase /

RedirectMatch 301 ^/wp-content/uploads/(.*)$ http://images.purabtech.in/$1

Above all steps are important to change the wordpress images into images subdoamin. If you are having any issues or questions about this article. Then please write to me.

how to modify autosave Interval in wordpress

When you start writing post in wordpress panel. WordPress has facility to autosave the post with in every one minute. modify autosave Interval in wordpress.

how to modify autosave Interval in wordpress

how to modify autosave Interval in wordpress
how to modify autosave Interval in wordpress

When editing a post, WordPress uses Ajax to auto-save revisions to the post as you edit. You may want to increase this setting for longer delays in between auto-saves, or decrease the setting to make sure you never lose changes. The default is 60 seconds.

This really good feature of wordpress but sometimes this became very painful to blogger because of revision posts and size to database. Due to post revision wordpress post table size increases and Due to that database became slower.

So I recommend to change the auto save time of your wordpress.You can change the ‘auto-save’ time of wordpress blogs by your own time limit. This task invloves changin the configuration of AUTOSAVE_INTERVAL constant and replacing the given time interval by your time.

Just follow my steps very carefully. Open the wp-config.php file which you can find in your wordpress root folder.

and find the following sentence.

define('AUTOSAVE_INTERVAL', 60 ); // seconds

and change that to following


define('AUTOSAVE_INTERVAL', 180 ); // seconds

After doing this change upload wp-config.php file to server again. After this change Auto save will start after 3 min instead of 1 minute.

increase memory allocation for wordpress

Many people faced memory issue wordpress and WordPress itself uses the so much memory. By default wordpress uses the 32mb memory. shown you to increase memory allocation for wordpress using config file.

increase memory allocation for wordpress

First you need to know what is the use of increasing the memory limit for wordpress. If I increase the WP_MEMORY_LIMIT from 32M to 64 or 96M will it make my website load fast.

We can adjust the amount of memory using the wp-config.php file.

define('WP_MEMORY_LIMIT', '96M');

Many shared hosting provides the default memory for php. What I see most commonly shared hosting set the memory limit to 8mb or 16mb. They does not allow you to increase the php memory limit and in that case if you changed the wp-config file then also there is no use of that change.

increase memory allocation for wordpress
increase memory allocation for wordpress

What that setting do?
This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.

Dont use WP-Robot plugin ever in WordPress blog

First reason I must say that google does not like the wp-robot wordpress plugin. Unique and good quality contents are what you need to RANK. Dont use WP-Robot plugin ever in WordPress blog.

What is Wp-Robot?

WP Robot is an autoblogging plugin for WordPress weblogs. It will enable the user to create targeted blog posts on any topic without having to write anything. Blogs will be set on auto-pilot and fresh content will be entered on a schedule that the user specifies and the posts can be on any topic and will be targeted to any keyword desired. Content can be taken from any source including Amazon, Ebay, ClickBank, and YouTube.

Many People think they will earn money easily from this plugin. But that is not true. If you use wp-robot plugin for month you will get to know. Not single article is indexed by google.
Because Google will check the article title and content and That content is duplicate then google never index that page.
Your articles will never comes in picture. It might be possible in that blog you will right the your own articles but still due to wp-robot google will never index your article.
Google might ban your domain name due to wp-robots. Earlier this is happened with some domain names due to wp-robots.
So My advice to all bloggers dont use wp-robots ever.

How to Increase Your WordPress Blog Traffic Overnight?

WordPress is used any almost all the blogs as CMS. Many people need the blog traffic for their site. There are many people searching for increasing the traffic of site. Here in this article We given tricks for Increase Your WordPress Blog Traffic Overnight.. Here in this article I found some best tricks to increase blog traffic.

How to Increase Your WordPress Blog Traffic Overnight?

Would you like to increase traffic to your ecommerce business blog overnight?

Believe it or not, this may just be do-able!

How, you ask?

  • With the WordPress OnlyWire Auto Poster plug-in, that’s how!

As you may or may not know, WordPress is probably the most popular and often used blog platform on the World Wide Web according to Technorati. It’s a state of the art publishing platform that focuses on aesthetics, web standards and usability.

How to Increase Your WordPress Blog Traffic Overnight?
How to Increase Your WordPress Blog Traffic Overnight?

Best of all, it’s FREE.

The WordPress Only Wire Auto Poster plug-in can significantly increase traffic to your blog—possibly or even probably—overnight because by using it, you are able to syndicate your blog posts to over 30 of the top social sites simultaneously, with just one click of a button.

No more slogging along doing it the hard way, one at a time. With the OnlyWire plug-in, you are assured of getting your blog post out there where the most people will see it, and hopefully read it.

Just think of how this could help you build valuable backlinks, not to mention improve your website traffic and search engine index speed!

There are two ways to use the WordPress OnlyWire Auto Poster plug-in:

  1. As a Firefox plug-in which will stay in the upper right hand corner of your browser, right next to the Google search bar, or
  2. Install the OnlyWire plug-in from your WordPress blog simply by selecting it from the available WordPress plug-ins, and then clicking install.

It’s just that easy!

OnlyWire is a blogger’s dream come true as a time saver. There are four ways to use it, including the simultaneous submission to social sites feature:

  1. Submission browser button: Syndicates your blog article to 31 social sites at once
  2. Bookmark and share button: This button can be placed on websites and blogs, and allows visitors to share the page on their social networking sites.
  3. Developer API: Automatically submits blog or web content to an existing CMS system at the will of the user.
  4. Account management: A very handy tool within the program that you can use to keep track of everything. It will set up the social sites to be used, show submission history, as well as finalize your submissions to manage a member account.

If you want to save yourself a lot of time on social media marketing, and increase traffic to your blog overnight, then you should take a look at WordPress OnlyWire for your online dropshipping business or other ecommerce enterprise.

http://wordpress.org/extend/plugins/wp-onlywire-auto-poster/

 

WordPress bloggers must install google gears

So many times we saw the turbo link in the upper right corner of the admin area. (Remember when computers used to have a Turbo button?) Behind it is a new feature of WordPress.com, support for Gears.

Wordpress bloggers must install google gears
WordPress bloggers must install google gears

In 2007 Google launched its new product called Google Gears. Google Gears makes it easy to browse the Internet, or sites you have already visited so you can visit them again using an amazing cache technology.

Here I will explain you what is google gears is doing. When we open our worpdpress admin, wordpress will download common images, JavaScript libraries and CSS files.

If we use the google gears then WordPress will store all these ’static’ files on your hard drive and will not download them from the web server. Means each time you are opening the WordPress admin panel that time wordpress will not download the common images and css and javascript. Thus, it should speed up things especially if you are on a slow connection.

Following article which is written by Matt (Founder of WordPress) is really helpful about knowing about wordpress and google gears.

http://en.blog.wordpress.com/2008/07/02/gears/

You can go to following URL and download google gears and install it on your local machine.

Google Gears

The Google gears is available for  Windows, Windows Mobile, Mac OS Tiger/Leopard, Mac OS Snow Leopard, Linux and Android.

So just install it your local computer.

How to show recent posts without wordpress plugin

When we are work with wordpress theme. So many times we want to show recent posts without wordpress plugin in wordpress theme.  Many people suggest to use wordpress plugin for showing the recent post.

How to show recent posts without wordpress plugin

But I suggest not to use any wordpress plugin for showing the recent posts in wordpress theme.

In this tutorial I will tell very simple technique to show recent posts. Following code you can use in your sidebar.php or in footer.php or anywhere as per your theme requirement.

Just put following code in your theme file. You just need to change the showposts count as per choice.


<?php
 $recent_posts = new WP_Query('showposts=15');
 while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>

Your recent post will look this. You just need to customize css as per your wordpress theme.

show recent posts without wordpress plugin
show recent posts without wordpress plugin