Widgets are pretty amazing. I witnessed what widgets can do while poking around with several themes at WordPress.com. I was pretty amazed how users can drag and drop elements into the sidebar area. The usual sidebar suspects such as Pages, Links, Calendar, Categories, Archives, Recent Comments, Search and Meta were available along with Text and RSS feeds. With Text, you can drag and drop a text box in the sidebar panel which is similar in function to the About text you see in several WordPress themes. The RSS widget allows you to syndicate news in your sidebar such as CNN, BBC and Yahoo News for example. You can specify how many Text and RSS widgets you want added by simply selecting from a dropdown menu.
Ajax is a Web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire Web page does not have to be reloaded each time the user makes a change. This is meant to increase the Web page’s interactivity, speed, and usability.
A great feature of the Ajax Calendar is the split view which displays a drop down list of entries of the current month on display. The built-in cache increases subsequent delivery speed and reduces server load. The Ajax Calendar was fairly easy and straightforward to install. I only made one code change to sidebar.php.
Finally, I modified the SQL statement in common.php by adding a “DESC” at the end to reverse the order of articles listed in split view. I just prefer seeing the articles listed from the most recent to the beginning of the month in reverse order. Here’s the code:
SELECT ID,post_title FROM $wpdb->posts WHERE MONTH(post_date) = â€˜$monthnumâ€™ AND YEAR(post_date) = â€˜$yearâ€™ AND post_status = â€˜publishâ€™ ORDER BY post_date DESC
One last thing, you have to clear the cache to see the changes take effect.