how to change wordpress post order category wise

When we need to re-arrange my recent post in wordpress. they go Ascending/Descending order category wise. Code for change wordpress post order category wise. We can easily achieve this using wordpress api.

how to change wordpress post order category wise

how to change wordpress post order category wise
how to change wordpress post order category wise

use following code:


<!--?php

//The Query
query_posts('cat=1,3,3&posts_per_page=15&order=ASC');

//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
 ..
endwhile; else:
 ..
endif;

?-->

What is surprise me feature in wordpress

After every new release, wordpress users want to know new features What is surprise me feature in wordpress and “what is exactly use of surprise me feature”

What is surprise me feature in wordpress

Yesterday wordpress started new feature in there CMS. which is called surprise me. That is really coll feature. Many wordpress users want to know about this features “what is this feature” and “how to use this feature” and “what is exactly use of surprise me feature”.

In this article I will tell you how to use surprise me feature and what is benefits and uses of surprise me feauture.

go to following URL and login to your wordpress.

http://dashboard.wordpress.com/wp-admin/users.php?page=grofiles-user-settings

What is surprise me feature in wordpress
What is surprise me feature in wordpress

If you’re open to new things and serendipitity in your blogging life try leaving it on as you go about your normal blogging activities of posting, commenting, checking your stats, and such, and see what pops up.

Still I am looking what more this surprise me feature is doing in wordpress. I am really excited what is this feature doing in future.

How to use multiple blogs in wordpress – multisite

Earlier wordpressmu was giving support for multisite support. Through this article, I will show you, How to use multiple blogs in wordpress – multisite.

use multiple blogs in wordpress – multisite

use multiple blogs in wordpress - multisite
use multiple blogs in wordpress – multisite

As we know wordpress 3.0 beta is released yesterday and as per wordpress team they merged the classic wordpress and wordpressMU.

But when we do installation of wordpress 3.0. There is no multiblog  facility available. For using the multiblog functionality we need to to some manual changes in code.

In this article I will tell you few steps about using the multiblog functionality in wordpress 3.0 beta.

First open the wp-config file and put following lines in that

define ('WP_ALLOW_MULTISITE', true  ) ;

Use following steps also
1 First, back up your exisiting wp-config.php and .htaccess files.

2. Create a blogs.dir directory under /wp-content/
This directory is used to stored uploaded media for your additional sites and must be writeable by the web server. They should be CHOWNed and CHMODed the same as your wp-content folder.

3. Add the extra lines provided to your wp-config.php file

These lines are dynamicly generated for you based on your configuration.

Put these lines right under the wp_allow_multisite line, mostly for readability.
Note: If you are installing in a folder the base and path will contain the folder name.

4. Replace the content of your .htaccess file with the following

(If there isn’t one, then create it.)

These lines are dynamicly generated for you based on your configuration.

5. Once the above steps are completed and the new wp-config.php & .htaccess files are saved, refresh your dashboard.
You will now see a new menu section called Super Admin. The menus contained in there are for adding and managing additional sites in your network. Your base WordPress install is now the main site in your network.

Now you can do the installtion of wordpress 3.0 beta and you are able to use multiblog functionality in wordpress 3.0

WordPress 3.0, Beta 1 is Released

This is really great news of yesterday. WordPress 3.0 beta is out for testing.

They merged the wordpress and wordpressMU in this version. There are so many major changes in UI and interfaces has been done.

WordPress 3.0, Beta 1 is Released
WordPress 3.0, Beta 1 is Released

You must know about this release

  • The custom menus system (Appearance > Menus) is not quite finished. In Beta 2, the layout will be different and a bunch of the functionality will be improved, but we didn’t want to hold things up for this one screen. You can play with making custom menus, and report bugs if you find them, but this is not how the final screen will look/work, so don’t get attached to it.
  • The merge! Yes, WordPress and WordPress MU have merged. This does not mean that you can suddenly start adding a bunch of new blogs from within your regular WordPress Dashboard. If you’re interested in testing the Super Admin stuff associated with multiple sites, you’ll need some simple directions to get started.
  • We’re still fiddling with a few small things in the UI, as we were focused on getting the more function-oriented code finished first. For example, we’re getting a new icon for the Super Admin section.

Best new thing in wordpress 3.0 beta

  • Play with the new default theme, Twenty Ten, including the custom background and header options.
  • Custom Post Type functionality has been beefed up. It’s really easy to add new types, so do that and see how it looks!
  • WordPress MU users should test the multiple sites functionality to make sure nothing broke during the merge.

You can download the wordpress 3.0 beta from here

Download wordpress 3.0 beta

  • Play with the new default theme, Twenty Ten, including the custom background and header options.
  • Custom Post Type functionality has been beefed up. It’s really easy to add new types, so do that and see how it looks!
  • WordPress MU users should test the multiple sites functionality to make sure nothing broke during the merge.

Father of the PC Dr Henry Edward Roberts died

Dr Henry Edward Roberts was the inventor of the Altair 8800, a machine that sparked the home computer era.

Gates and Allen contacted Dr Roberts after seeing the machine on the front cover of a magazine and offered to write software for it.

Dr Henry Edward Roberts died

When Roberts developed his Altair 8800 the following year, it became the first commercially-successful personal computer kit, retailing at $397. At first the project seemed ill-starred: having promised Popular Electronics a prototype to meet the magazine’s copy deadline, Roberts shipped the machine to New York, only for it to be lost in transit.

Once launched, the machine – named Altair after the 12th brightest star in the sky – became another instant hit, with MITS shipping more than 5,000 kits in seven months. By 1976 sales totalled $6 million. But competitors had already started selling imitations, and the following year Roberts sold his company, pocketed $2 million and moved to rural Georgia, becoming a gentleman farmer and starting a software company.

Later he was able to fulfil his boyhood ambition of becoming a doctor, and set up a practice in the small town of Cochran in 1988.

The program was known as Altair-Basic, the foundation of Microsoft’s business.

“Ed was willing to take a chance on us – two young guys interested in computers long before they were commonplace – and we have always been grateful to him,” the Microsoft founders said in a statement.

“The day our first untested software worked on his Altair was the start of a lot of great things.”

Apple co-founder Steve Wozniak told technology website CNET that Dr Roberts had taken ” a critically important step that led to everything we have today”.

‘Fond memories’

Dr Roberts was the founder of Micro Instrumentation and Telemetry Systems (MITS), originally set up to sell electronics kits to model rocket hobbyists.

The company went on to sell electronic calculator kits, but was soon overshadowed by bigger firms.

In the mid-1970’s, with the firm struggling with debt, Dr Roberts began to develop a computer kit for hobbyists.

The result was the Altair 8800, a machine operated by switches and with no display.

It took its name from the then-cutting edge Intel 8080 microprocessor.

The $395 kit (around £1,000 today) was featured on the cover of Popular Electronics in 1975, prompting a flurry of orders. It was also sold assembled for an additional $100 charge.

Amongst those interested in the machine were Paul Allen and Bill Gates.

The pair contacted Dr Roberts, offering to write software code that would help people program the machine.

The pair eventually moved to Albuquerque – the home of MITS – where they founded Micro-Soft, as it was then known, to develop their software: a variant of the Beginners All-purpose Symbolic Instruction Code (Basic).

“We will always have many fond memories of working with Ed in Albuquerque, in the MITS office right on Route 66 – where so many exciting things happened that none of us could have imagined back then,” the pair said.

Dr Roberts sold his company in 1977.

He died in hospital on 1 April after a long bout of pneumonia.

Source Link

ie9 new features for developers

We are really waiting for IE9 version. IE9 will support more advanced web features than the other latest browsers like google chrome,firefox etc. As per microsoft performance will of internet explorer will increase by 50% at least.

ie9 new features for developers
ie9 new features for developers

As we know the most recent versions of Internet explorer which is IE7 and IE8 but I say IE7 and IE6 is really pain for web developers.

We are really want to know what is coming new with IE9 version. We have very perfect idea about IE9 and there features. With IE9 I would say micro soft is really ready with fight with Firefox and google chrome.

Here is the List What is new coming in IE9

Javascript:

HTML5:

Graphics:

Above all features are coming in IE9 and all web developers are looking for that change. If you want to test the IE9 features then just visit the following page and download IE9.

IE9 Demo Download

If you want to check the all the IE9 features than visit following URL

http://ie.microsoft.com/testdrive/Default.html

how to use robots.txt file in wordpress

Many person does not know importance of robots.txt file and how to use robots.txt file in wordpress. robots.txt file is important as per search engine.  The robots.txt file is very important as per search engine and SEO prospective.

how to use robots.txt file in wordpress

how to use robots.txt file in wordpress
how to use robots.txt file in wordpress

What is robots.txt file?

Robots.txt is a text (not html) file you put on your site to tell search robots which pages you would like them not to visit. Robots.txt is by no means mandatory for search engines but generally search engines obey what they are asked not to do.

In wordpress you should put robots.txt file. you can use following code in robots.txt file and put that file under your ROOT directory( wordpress main folder)

User-agent: *
Allow: /
Disallow: /*?s=
Disallow: /wp-admin/*
Disallow: /wp-content/*
Disallow: /wp-includes/*
Disallow: /wp-content/cache
Disallow: /wp-content/themes/*<code></code>
Disallow: /wp-content/plugins/*

Important Note: if you are using the QA or testing enviourment then put following lines in your theme header.php file. You can put the domain name condition also.

<?php
if($SERVER)['HTTP_HOST']=='Testing domain name') {
?>

<?php } ?>

You should not disallow the images and comments also because that is more important for SEO purpose. I recommend to use always good permalink structure for your wordpress installation.

how to register multiple sidebar in wordpress

Many wordpress developers and PHP developers who are new in to wordpress development. They really searching for how to add a dynamic or multiple side in wordpress theme. many sidebar or widget are very important to add in any wordpress theme for seo purpose also so you can add the widgets using our code sample.

register multiple sidebar in wordpress

Many wordpress developers got requirement to add separate sidebar for each page or any specific page and that sidebar need to be controlled by wordpress admin.

In this tutorial I will show you how to simply add the multiple or dynamic sidebar to wordpress theme. I really think creating the or putting separate css and options in  the sidebar and admin has no control over the sidebar.

Just use my code to create the multiple sidebar in wordpress theme. This following function is provided by wordpress api only. Open your functions.php file from your wordpress theme folder


<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1"-->php
 if(function_exists('register_sidebar'))
 register_sidebar(array(
 'name' => 'Home Page', // The sidebar name you can choose as per your choice to register
 'before_widget' => 'PUT YOUR OPENING CSS DIV AND CSS CLASSES AND IDS HERE',
 'after_widget' => 'CLOSE THE DIV',
 'before_title' => '<h2>',
 'after_title' => '</h2>',
 ));
?>

This is sample code for multiple pages your can use following code:


<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1"-->php
     // Home Page sidebar
     if(function_exists('register_sidebar'))
          register_sidebar(array(
          'name' => 'Home Page',
          'before_widget' => 'PUT YOUR OPENING CSS DIV AND CSS CLASSES AND IDS HERE',
          'after_widget' => 'CLOSE THE DIV',
          'before_title' => '<h3>',
          'after_title' => '</h3>',
     ));
     // Blog Page sidebar
     if(function_exists('register_sidebar'))
          register_sidebar(array(
          'name' => 'Blog Page',
          'before_widget' => 'PUT YOUR OPENING CSS DIV AND CSS CLASSES AND IDS HERE',
          'after_widget' => 'CLOSE THE DIV',
          'before_title' => '<h3>',
          'after_title' => '</h3>',
     ));
     // Contact us Page sidebar
     if(function_exists('register_sidebar'))
          register_sidebar(array(
          'name' => 'Contact Page',
          'before_widget' => 'PUT YOUR OPENING CSS DIV AND CSS CLASSES AND IDS HERE',
          'after_widget' => 'CLOSE THE DIV',
          'before_title' => '<h3>',
          'after_title' => '</h3>',
     ));
     // About us Page sidebar
     if(function_exists('register_sidebar'))
          register_sidebar(array(
          'name' => 'About us',
          'before_widget' => 'PUT YOUR OPENING CSS DIV AND CSS CLASSES AND IDS HERE',
          'after_widget' => 'CLOSE THE DIV',
          'before_title' => '<h3>',
          'after_title' => '</h3>',
     ));

?>

Here is Big question, How can you call the different sidebars and manage it. Go to wordpress admin and you will find and four side bars present in widgets sections as per this code. You can just drag and drop the widgets as your choice.

Open your sidebar.php file put following code in that file.

<?php
is_page('Home Page') {
     if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page')) :
     endif;
}
?>
how to register multiple sidebar in wordpress
how to register multiple sidebar in wordpress

You can use the following type of code in your sidebar.php file as per your condition. If you have any issues get back to me.

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