It’s getting pretty frustrating to spend the time to give good advice and to see crappy code suggested as the solution. Just because is seems to work dosn’t mean that you aren’t hurting your site’s performance.
I wouldn’t recommend using that code and I don’t recommend or support using any other version of Thematic or WordPress other than the current releases.
By using query_posts you’re discarding the original query and creating another one. So you’re basically hitting the database a second time when you dont need to.
Ok I know what you mean, but I updated the wordpress and I set it back to childtheme now. Using your script in the fuctions.php. The startpage content dosen’t come up, I see just empty content and my buttons (without the category buttons).
The debug says:
sidebar.php-mall i ditt tema. in /wordpress/wp-includes/functions.php on line 2881
I really should have look at the forum this was posted in and realized that you were using a modded version of Thematic from the start.
Using a child theme is breaking your site because your using a customized version of Thematic. The forums here support using Thematic as a standalone theme if not modified *and* using Thematic with child themes.
I think this is your best course of action now:
Back up your modded version of Thematic to protect yourself from updating Thematic and overwriting your theme edits.
Convert your existing Thematic theme to a child theme and then reinstall a fresh version Thematic.