Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter landun

    (@landun)

    Thank you! doryphores for the hero-of-the-day-award!

    My theme was also missing wp_head(), or rather it was commented out. Right now I have no idea why.

    There are two problems:

    1. If you want to display images in your category descriptions you have to replace category_description() in your theme with:

    $category = get_the_category();
    echo $category[0]->category_description;

    2. If you want to add or update category descriptions with images using 2.9 you have to edit the database manually. It seems the admin interface is stripping images before saving to the database.
    If you can use phpMyAdmin or similar try this SQL to get the relevant posts.
    SELECT * FROM wp_term_taxonomy WHERE taxonomy = 'category';

    Today I hate wordpress.

    If you’re going to use the plugin for categories, you need to define $num_posts_in_category and register it as a global variable.

    $num_posts_on_home = 1;
    $num_posts_in_category = 20;
    function custom_posts_per_page($query_string) {
    global $num_posts_on_home;
    global $num_posts_in_category;
    $query = new WP_Query();

Viewing 3 replies - 1 through 3 (of 3 total)