The Personal Weblog of Akshay Jain
Recently, I was creating one website in which there were loads of database entries which I needed to integrate into WordPress Blogging system as it is really flexible.
But the default option of WordPress is that it always shows all the posts in reverse chronological order but I wanted to change posts order so that the posts on the front page is displayed in an ascending order.
For achieving this, either you can use good plugins that are currently available which allow you to get a greater control of your posts but I found them very complicated and they were meant for more complicated things than just arranging the posts in ascending order.
So, here is a little code that I found which you can place in your /wp-content/themes/THEMENAME/index.php file. You have to place it just before the posts loop code which will basically look something like this:
Just add the following code just before “if(have_posts())“ and your posts will be arranged in an ascending order.
query_posts($query_string."&order=ASC");
Hope that helps someone who is looking for this code. If you have any other WordPress queries, then you can make a comment on this post.
Hi
Firstly, I would like to mention that this blog post is in no way related to technology. But, I want to still blog about it because I feel this is a very important humanitarian duty which every human being must fulfill and especially the youngsters. Read the rest of this entry »
Like everyone, I immediately downloaded the new Google Chrome browser that is supposed to have been released today and frankly, I am pretty excited about it as this will completely change and modify the browser wars that have been prevailing between Microsoft’s Internet explorer and Mozilla’s Firefox (and to some extent Opera also
)
Firstly, I would like to start my review by giving a very important piece of information that I read some days back when Google had formally announced their intention to enter the browser market. They had come up with a Comic Strip Read the rest of this entry »
I am Akshay Jain a student in Economics and a web enthusiast. Most of my readers would be knowing me by my pseudonym champ_rock/champrock. This is my blog and I know I wont be keeping this updated. For contacting me, please use the contact form!
Please subscribe to the RSS feeds in order to get the latest updates on my blog!
airtel
apple
apple itunes
ascii
benchmark
broadband
browser
confidence motion
converter
ebaumsworld
firefox
fun
galwaysidle
Google
google campus ambassador
google gadget
google trends
google trends hacked
google trends spam
gtalk
hacked
hijack
how to poop at work
idle
iim
iim-i
iim pgp
iim student website
image to ascii
indian government
ipod
itunes
latest browsers
opera
opera functions
politics
ram
ram usage
redirect
swastika
taskmanager
trends hacked
typo
virus
ǝlƃooƃ noʎ ʞɔnɟ Broadband (India) (2)
Code Snippets (6)
Economics (1)
General (17)
Google (3)
Indian Politics (1)
Jainism (1)
Latest Buzz (6)
New Scripts (1)
opera (2)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.