How to speed up wordpress blog or site

Many wordpress blogger always spending some time for speeding up there blogs. In this aritcle I will tell you how you can speed up your wordpress blog with easy steps. Loading your website is very important. If your blog or site not more fast then bounce rate of your website will be high.

 speed up wordpress blog

There is apache module called zlib. which is used for compression.

zlib is a lossless data-compression library that will help you to serve your pages faster. This will compress the static data of your website. like images, css and media and javascript files. It compresses the PHP that WordPress sends to your visitor’s browser so that it displays much more quickly. Compressing and sending is much faster than sending the PHP in its full size format.

 speed up wordpress blog
speed up wordpress blog

If you are using dedicated hosting service then easy to make changes in your files but if you are using the shared hosting then first you need to check zlib compression is available or not.

For checking zlib library create the phpinfo() file and see the zlib is there or not.

Mostly 99% shared hosting gives zlib compression facility. Just open your header.php file from your wordpres theme folder and following code in that file in top of file section.


<?php
ini_set(’zlib.output_compression’, ‘On’);
ini_set(’zlib.output_compression_level’, ‘1′);
?>

This change will save your bandwidth and webpage will load faster. you can see the result after doing this change. In my site I saw the difference.

Website will load 3 to 4 times faster than earlier.

 speed up wordpress blog
speed up wordpress blog

WordPress 3.0.3 released with Fixes issues

Some time before on 8th December WordPress released the New version which is 3.0.3. What wordpress is saying about this release.

WordPress 3.0.3 released with Fixes issues in the XML-RPC remote publishing interface

Wordpress 3.0.3 released with Fixes issues
WordPress 3.0.3 released with Fixes issues

This release fixes issues in the remote publishing interface, which under certain circumstances allowed Author- and Contributor-level users to improperly edit, publish, or delete posts.

These issues only affect sites that have remote publishing enabled.

Remote publishing is disabled by default, but you may have enabled it to use a remote publishing client such as one of the WordPress mobile apps. You can check these settings on the “Settings → Writing” screen.

With this release they Improved the capabilites checking in the XMLRPC code. They modified the following files.

wp-includes/version.php
xmlrpc.php
readme.html
wp-admin/includes/update-core.php

Enjoy the wordpress 3.0.3 version.

convert plain text URI to HTML links in wordpress themes

When you put some URL and email address you need to manually add the link URL to that text. This action always takes the some time of wordpress blogger. WordPress has facility to add the links to your URL and email address automatically.

 

convert plain text URI to HTML links in wordpress

This facility is available in wordpress since wordpress 2.7 version but many wordpress theme and plugin developers never used this functionality.

WordPress provides the make_clickable() function for convert plain text URI to HTML links. This function able to convert URI, www, ftp, and email addresses. Finishes by fixing links within links. You just need to pass the string parameter to this method.

More detail information you can find in following file.
wp-includes/formatting.php.

You can use this method in your functions.php file also. Use the following code.

add_filter('the_content', 'make_clickable');

By using this code you are able to covert the URI, www, ftp, and email addresses in to link.

If you are having any issues or question about make_clickable method then please write to me.

pune to ganpatipule route by car distance 330 km

Last month I went to Ganpatipule from Pune. I visited Ganpatipule for 3 to 4 times and I went to ganpatipule from many routes. In this article I will tell you which is best road route for going to Ganpatipule.

pune to ganpatipule route by car distance 330 km

Important : Dont take mulshi and Mahad route. Actually when you search in google maps you first got that route. But roads are not good on that route and that is not very nice route.

Kubharli Ghat pune to ganpatipule route by car distance 330 km
Kubharli Ghat pune to ganpatipule route by car distance 330 km

Take NH4 Highway route. First go to Satara -> Umbraj. From Umbraj take right turn to patan gaon. Patan-malharpeth then go to Helwak -> Kumbharli Ghat – then go to Chiplun. From Chiplun If you want to go by short cut then go from Dangli Akhli road. You need to ask there How to reach Ganpatipule from Dangli Akhli road.

Dont go to Hathkambha take dangli akhali road that will save you 35 to 40 kilometers road.

Pune-Satara-Umraj-right turn- patan-Malharpeth-Helwak-Kumbharli Ghat-Dangli Akhali -Ganpatipule

Total KM – 300 KM.

Nice places between Road. You must see the konanagar Dam and For seeing the dam you need to take pass from the Dam office. You should see the Nehru Garden. This garden is very nice and clean and big. From this garden you can see the dam. Between the road you will see the many monkey in Kumbharli Ghat but dont stop the car and dont feed the money because that monkeys are not good. Between Kumbharli Ghat you will see the many waterfalls.

Ganpatipule Beach
Ganpatipule Beach

Stay at Ganpatipule- You will get very nice rooms at ganpatipule for rated only 600 to 800. That will enough for one family or 6 to 8 people. With four bedroom and attached bathroom.

Food is also very cheap and nice. For 40 to 50 rupees you will get the thali.

Ratnagiri Beaches –

AreWare beach – 13 Km from Ganpatipule, Nice clean, lonely and safe beach

Ratnagiri Light House – 26 Km from Ganpatipule, You should see this.

Bhatya Beach – 26 km from Ganpatipule, Nice place but not nice beach

Madvi Beach – 32 km from Ganpatipule, Nice , lonely but not safe beach

Ratnagiri is cheap and nice and clean city.

wordpress 3.0.2 released

On November 30, 2010, WordPress 3.0.2 was released to the public. In this release they introduced the major security updates. The WordPress development team has released version 3.0.2 of their popular open source blogging and publishing platform, a maintenance and security update for the 3.0.x branch of WordPress.

wordpress 3.0.2 released.

 

You can download new wordpress version from.

http://wordpress.org/download/

WordPress has released a new version, 3.0.2, to fix a SQL injection flaw.  This flaw is in all previous versions of the codebase according to reports, which means that if you are running WordPress, you must update.  This exploit is possible with author-level permissions but personally I would not depend on this to protect myself.

The WordPress development team has released version 3.0.2 of their popular open source blogging and publishing platform, a maintenance and security update for the 3.0.x branch of WordPress

With the 3.0.2 version wordpress fixed following issues.

  • Fix moderate security issue where a malicious Author-level user could gain further access to the site. (r16625)

Other bugs and security hardening:

  • Remove pingback/trackback blogroll whitelisting feature as it can easily be abused. (#13887)
  • Fix canonical redirection for permalinks containing %category% with nested categories and paging. (#13471)
  • Fix occasional irrelevant error messages on plugin activation. (#15062)
  • Minor XSS fixes in request_filesystem_credentials() and when deleting a plugin. (r16367, r16373)
  • Clarify the license in the readme (r15534)
  • Multisite: Fix the delete_user meta capability (r15562)
  • Multisite: Force current_user_can_for_blog() to run map_meta_cap() even for super admins (#15122)
  • Multisite: Fix ms-files.php content type headers when requesting a URL with a query string (#14450)
  • Multisite: Fix the usage of the SUBDOMAIN_INSTALL constant for upgraded WordPress MU installs (#14536)

custom post type permalink not working wordpress

From WordPress 3.0 version we are able to use the custom_post_type. In installation time of theme or plugin new permalink structure will be created and you can easily able to use the custom post type permalink.

custom post type permalink not working wordpress
custom post type permalink not working wordpress

If your custom_post_type function is having some issues then wordpress permalink for your custom post type will not work. If your custom post type permalink is not working properly then normally you will get the 404 page and message saying page not found.
Your wordpress does not create the permalink structure aumatically so you need to recreate the Rewrite rules again with wordpress.

If you not added following code in you custom_post_type function then please add the following code:

'rewrite' => array(
 'slug' => 'issue',
 'with_front' => FALSE,
 ),

The right way to use rewrite rule in function is as follows;

register_post_type( 'movies',
 array( 'label' => __('Movies')
, 'public' => true,
'show_ui' => true ,
'rewrite' => array( 'slug' => 'movies', 'with_front' => false )
 ) );

If you are still facing issue and 404 page is coming then go the your wordpress panel -> setting- > permalink page and hit save changes button.
That will flushes the rewrite rules and build rewirte rules again in wordpress.

How to use custom post type in wordpress

From wordpress 3.0 version release wordpress gives the facility to add a custom post type functionality. With custom post type wordpress is became more powerful and expendable and more advanced We given info about, How to use custom post type in wordpress.

How to use custom post type in wordpress

WordPress recognized the need to people and industry and they introduced the custom post type. In this tutorial I will tell you how to use the custom post type very effectively.

Adding Custom post type is very easy. Using theme or plugin file you can add the custom post types in wordpress admin area.

Here I am going to give you example using wordpress theme files. Open you functions.php file and copy paste the following code in that file.


add_action('init', 'create_product');
 function create_product() {
 $product_args = array(
 'label' => __('Product'),
 'singular_label' => __('Product'),
 'public' => true,
 'show_ui' => true,
 'capability_type' => 'post',
 'hierarchical' => false,
 'rewrite' => true,
 'supports' => array('title', 'editor', 'thumbnail')
 );
 register_post_type('product',$product_args);
 }

How to use custom post type in wordpress
How to use custom post type in wordpress

The function register_post_type() accepts two arguments: the name we want to give our post type, and a list of arguments used to create that post type, which we put in an array called $args.

Using above code that code will add the product post type to wordpress panel.

Now you can add the meta fields to custom post type. Use the following code in file for add the meta fields. Custom meta fields function is available from quite some time. add_meta_box() function is very useful to adding custom fields to wordpress post.


<?php

 add_action("admin_init", "add_product");
 add_action('save_post', 'update_thumbnail_url');
 function add_product(){
 add_meta_box("product_details", "product Options", "product_options", "product", "normal", "low");
 }
 function product_options(){
 global $post;
 $custom = get_post_custom($post->ID);
 $thumbnail_url = $custom["thumbnail_url"][0];
 $product_info = $custom["product_info"][0];
 $product_infos = $custom["product_infos"][0];
 $video_code = $custom["video_code"][0];

?>
 <div id="product-options">
 <label>Thumbnail URL:</label><input size="100" name="thumbnail_url" value="<?php echo $thumbnail_url; ?>" /><br>
 <label>Product Info:</label><input size="100" name="product_info" value="<?php echo $product_info; ?>" /><br>
 <img src="<?php echo $product_infos; ?>"><br>
 <label>Video Code:</label><textarea cols="50" rows="5" name="video_code"><?php $video_code; ?></textarea>
 </div><!--end product-options-->
<?php
 }
 function update_thumbnail_url(){
 global $post;
 update_post_meta($post->ID, "thumbnail_url", $_POST["thumbnail_url"]);
 update_post_meta($post->ID, "product_info", $_POST["product_info"]);
 update_post_meta($post->ID, "video_code", $_POST["video_code"]);

 }
?>

Using following code you can see the product information in edit product page and you can able to see the all information in for edit. Admin will know which fields are available to edit.

How to use custom post type in wordpress
How to use custom post type in wordpress

<?php
add_action("manage_posts_custom_column",  "product_custom_columns");
add_filter("manage_edit-product_columns", "product_edit_columns");

function product_edit_columns($columns){
 $columns = array(
 "cb" => "<input type=\"checkbox\" />",
 "title" => "Product Title",
 "thumbnail_url" => "Thumbnail URL",
 "product_info" => "Product Info",
 "video_code" => "Video Code",
 );
 return $columns;
}
function product_custom_columns($column){
 global $post;
 switch ($column) {
 case "thumbnail_url":
 $custom = get_post_custom();
 echo $custom["thumbnail_url"][0];
 break;
 case "product_info":
 $custom = get_post_custom();
 echo $custom["product_info"][0];
 break;
 case "video_code":
 $custom = get_post_custom();
 echo $custom["video_code"][0];
 break;
 }
}

?>

Using custom post type and add meta tag you can develop very nice applications. Now I am going to show you how you can extract the custom posts in wordpress frontend.

Using wp_query you can easily extract product posts. In any category page or conditionally you can use following code.


$loop = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => 10 ) );
while ( $loop->have_posts() ) : $loop->the_post();
 the_title();
the_content();
global $post;
 $custom = get_post_custom($post->ID);
echo $thumbnail_url = $custom["thumbnail_url"][0];
echo $product_info = $custom["product_info"][0];
echo $video_code = $custom["video_code"][0];
 echo '<div>';
 the_content();
 echo '</div>';
endwhile;

Or you can create the custom theme page using following code. Just create product.php page in your wordpress theme folder.Put following code in that file.


<?php

/*Template Name: Product*/

?>

<?php get_header(); ?>

<div id="container">

<div id="content" role="main">

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>

<?php $recent = new WP_Query('post_type=product&posts_per_page=10′); while($recent->have_posts()) : $recent->the_post();?>

<?php the_title( '<h2><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0′ ) . '" rel="bookmark">', '</a></h2>' ); ?>

<div>

<?php the_content(); ?>

<?php

the_content();
global $post;
$custom = get_post_custom($post->ID);
echo $thumbnail_url = $custom["thumbnail_url"][0];
echo $product_info = $custom["product_info"][0];
echo $video_code = $custom["video_code"][0];

?>

<?php wp_link_pages( array( 'before' => '<div>' . __( 'Pages:', 'wordpressapi' ), 'after' => '</div>' ) ); ?>

<?php edit_post_link( __( 'Edit', 'wordpressapi' ), '<span>', '</span>' ); ?>

</div><!– .entry-content –>

<?php comments_template( ", true ); ?>

<?php endwhile; ?>

</div><!– #content –>

</div><!– #container –>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Now create product page and product as template.

If you have any issues or doubts then write to me.

WordPress changed the statistic graph

Today when I logged to my wordpress blog account and looked at dashboard, I saw the new changed statistic graph.
The new statistic graph is looking really very cool. New graph version is better for those who are visually improved so nicely.

WordPress changed the statistic graph

For wordpress blogger and website users this news is really great.

Seeing this graph I must say you will miss having the grand total of both syndicated and on-site views for an entry.

As we know we need to updgrade the “WordPress.com Stats” wordpress plugin to see the updated stats in your hosted wordpress blogs.
You can download or update the wordpress stat plugin using following URL
http://wordpress.org/extend/plugins/stats/

Wordpress changed the statistic graph
WordPress changed the statistic graph

What wordpress is saying about changed Stat in Twitter.
Sexy Stats: http://wp.me/pf2B5-1n9

As per wordpress:
Each module can be opened and closed, moved, or hidden completely. If you don’t want to see a module, minimize it with one click or use the Screen Options to keep it out of sight. Customize everything and view stats the way you want to.

As you hover over each bar in the chart it changes color and displays a tooltip, giving you more information about the data. If the chart is showing data by day, Saturdays and Sundays have a light gray background to make it easier to see weekly patterns. Under the chart you’ll notice a new area, called “fortune cookies,” where we’ll highlight key stats.

During the redesign we went with bar charts because the end of one day and the beginning of another shouldn’t be connected. Each day starts at zero and we think bar charts work much better for this type of data. We hope you’ll agree once you get used to the change.

In this first phase of the stats redesign we’ve focused on the main page. This will allow us to collect feedback from you so we can tweak everything as we go. We’ve only mentioned a few of the highlights here, so take your stats for a drive around town to get used to the feel. Let us know what you like and what you might change. As we gather feedback we’ll apply a bit of sexy to the other stat pages.

Windows or MSN Space is migrating to wordpress.com

Few time ago wordpress just announced the partnership with  Microsoft. Microsoft is saying “WordPress as the new default blogging platform on Windows Live Spaces!” WordPress as the new default blogging platform on Windows Live Spaces!”

Windows or MSN Space is migrating to wordpress.com

Windows or MSN Space is migrating to wordpress.com
Windows or MSN Space is migrating to wordpress.com

Microsoft is saying “Over the last few weeks, we’ve spent a good bit of time talking about our approach to partnering with the web, and as part of that, how we’re deeply integrating with the leading consumer services that you find most valuable. Earlier today, I had the opportunity to get on stage at TechCrunch Disrupt, and with Toni Schneider, CEO of Automattic (the parent company of WordPress.com), announce an exciting partnership between our companies.”

Using this step more than 30 million users of windows space will migrate to wordpress.com.

In detail Matt is also written in his article.

MSN Spaces Closing, becomes WP.com

As we looked at how we brought Windows Live and WordPress.com together, there were three big things we wanted to deliver:

  • Giving existing Windows Live Spaces customers an easy upgrade of their blogging experience to WordPress.com
  • Letting anyone connect their WordPress.com blog to Messenger so their Messenger friends are updated when they publish a new post on WordPress.com
  • Allowing Windows Live customers to easily create new blogs on WordPress.com
Windows or MSN Space is migrating to wordpress.com
Windows or MSN Space is migrating to wordpress.com

For detail information for windows space user can use the following article for checking this further information about migrating the blog to wordpress.com

WordPress.com and Windows Live partnering together and providing an upgrade for 30 million Windows Live Spaces customers

WordPress.com is welcoming all the windows and live space users through Twitter. WordPress.com written the following tweet in Tweeter.

Welcome Windows Live Spaces Bloggers to WordPress.com! http://wp.me/pf2B5-1lU

Videos of Matt Mullenweg – WordPress founder

We all know who is Matthew Charles Mullenweg is. He dont need any introduction. Many times users, clients and developers are very interested to see what Matt is saying about wordpress and technology.

Videos of Matt Mullenweg – WordPress founder

 

In this article I am going to give you some videos of Matt which published in 2010.

Matt Mullenweg says Hi to Me!

wordcamp 2010 jerusalem q&a with Matt Mullenweg

Matt Mullenweg keynote – WordCamp Houston

Matt Mullenweg at WordCamp Houston

Matt Mullenweg and Mike Little : Cardiff July 2009.

Matt Mullenweg says hello to WordCamp Malaysia 2010 Part 1

You Are the Pride: Matt Mullenweg

WordPress creator Matt Mullenweg discusses his early days as a student at the University of Houston, and his passion for helping people find their …

WordPress Founder Matt Mullenweg

An interview with Matt Mullenweg, conducted at WordCamp SF 2010.

Matt Mullenweg talks about “Twenty Ten” for WordPress 3.0

An excerpt from Matt’s state of the word address on WordCamp San Francisco 2010

Matt Mullenweg, Founder Word Press

May 1, 2010 Matt at SF Word Camp sf.wordcamp.org