Show category meta in loop on homepage

$category = get_category($latest_issue); // it is category object echo $category->title; echo $category->description; in codex: http://codex.wordpress.org/Function_Reference/get_category But i think you should get category not by last created ID, but by slug: http://codex.wordpress.org/Function_Reference/get_category_by_slug So you should change: <?php $issue = get_terms(‘category’, ‘orderby=ID&order=DESC&number=1&child_of=3’); $latest_issue = $issue[0]->term_taxonomy_id; ?> <?php query_posts(array( ‘category__in’ => $latest_issue )); ?> to <?php $issue_category = … Read more

Tags Instead of Category

I think your idea is really nice here, but you have a couple of serious flaws in your code. Never use extract(), ever. It is extremely hard to debug and can render unexpected output. It has now been completely removed from core, except in one instance as far as I can pick up from this … Read more

Using categories with pages

As you have stated, pages aren’t meant to have categories. I would rather look into custom post types and taxonomies, but the implementation is still up to you as I don’t know your structures I have never tried this before, neither do I know if this will actually work, but you can try the pre_get_posts … Read more

Change categories count to include media attachments

You’ve probably solved this, but for anyone else that needs this: $wp_taxonomies[‘category’]->update_count_callback = ‘_update_generic_term_count’; This is significant in the case of attachments. Because an attachment is a type of post, the default _update_post_term_count() will be used. However, this may be undesirable, because this will only count attachments that are actually attached to another post (like … Read more

Query posts by views on category page

Don’t nullify the main query, this breaks stuff. Also, avoid using the $wp_query global as a custom variable. This breaks the main query and causes issues. You can also try adding ‘suppress_filters’ => true, to your arguments to suppress any custom filters if you are using any custom filters. Also, don’t use TEMPLATEPATH, it is … Read more