18 July 2010, 10:11 pm
Iva asks: For us who use shared/clustered hosting solutions, there a good and free way to run WordPress 3.0 with a couple of sub-sites using more than one database? Check out HyperDB. It does exactly this! Paul asks: How can someone make sure that their theme is compatible with the latest WordPress version? I presume Paul is asking this from a user perspective. If your theme is simple, there is only a very small chance that a WordPress upgrade will break it. This rarely happens. Plugins and advanced themes (which behave as plugins) break at a slightly higher (but still very low) rate. This has to do with how well they were coded, for the most part. If the author is using our documented public functions, it is probably fine. If they are making direct queries or using deprecated functions, it might be a problem. You can ask the author this question directly, but it would probably be faster to just throw the theme up on a fresh WordPress install (of the new WP version). For important sites, it doesn’t hurt to have a test site where you test your plugins and themes with new WP versions. That should give you more peace of mind about upgrading. Kieron asks: How do I change the number of posts shown in a category? Currently there are 10 but I am using 3 posts in a row so I either want to display 12 or 9 to make it look okay. The WordPress posts per page setting is global, but plugins can alter it based on the type of page you’re viewing (or any other criterion). The Different Posts per Page plugin looks the ticket! For people looking to do this in code, try this as a base: function my_custom_posts_per_page( &$q ) { if ( $q->is_category ) $q->set( 'posts_per_page', 12 ); /* You can also test things like: $q->is_search, $q->is_author, $q->is_year, etc Look in the WP_Query class for the full list of variables Also note that you can change the ordering! */ return $q; } add_filter('parse_query', 'my_custom_posts_per_page'); ... Read More »