By Navjot Singh on July 14, 2008
k2 theme’s latest version has a big bug in the form of no bullet style for unordered lists(ul tag). Actually this was a mistake that crept when Eric Meyer’s reset css was applied to the core css of k2 theme. To fix this bug, open core.css.php (../k2/css/core.css.php) and search & replace from line 29 to the 31:
ol, ul {
list-style: none;
}
to
ol, ul {
/* list-style: none; */
}
This should fix this simple bug.
Posted in Useful Tips, Wordpress, Wordpress Themes
By Navjot Singh on July 14, 2008
k2 theme provides inbuilt option for selecting your asides category and displaying posts from it using K2 sidebar manager. But recently, k2 does not exclude posts from asides in main content pages. That means apart from displaying asides posts in sidebar, it keeps on displaying them on homepage too!
This mean duplicate content on both sidebar and main page which looks bad. There is a easier way to do this. And this method works not only for removing posts from asides category but any category you want. To achieve this put the following code at bottom of functions.php just before ?> tag.
Code:
function ignore_asides ($query) {
if ($query->is_home)
$query->set('cat', '-x');
return $query;
}
add_filter('pre_get_posts', 'ignore_asides');
where x refers to any category you want to exclude posts from.
Posted in Useful Tips, Wordpress, Wordpress Themes
By Navjot Singh on July 13, 2008
Wordpress is progressing rapidly into 2.6.x series with release of 2.6 RC1 version yesterday. Wordpress 2.6 promises lots of new features and improvements over 2.5 series. One bug it will fix is number of comments display which I even posted as a ticket at Wordpress Trac.
There are lot more features coming to Wordpress 2.6 – some of which are:
- Ability to switch between flash and normal picture uploader
- Built in word count in post editor
- Better SSL Support for Admin login
- Manage Page and category pages will be hierarchial
- Ability to change your wp-content directory location
- Ability to move wp-config.php out of your webroot directory
- Drag and Drop Galleries
- Bulk delete, activate, and deactivate for plugins
- Check box range selection with shift-click
- Improved tag auto-suggest
- Image Captions
- Notification bubble on the Plugins menu when plugin updates are available
- Lot of fixes for image uploader and Galleries
- The ability to disable remote publishing
- And the best of all : Post revisions – ability to save different revisions of your posts date and time wise! – read here more about it
Download Wordpress 2.6 RC1
Final Wordpress 2.6 may come out as early as Monday.
Posted in Wordpress