category image taxonomy

Found a solution: <?php $cat = get_the_category(); $category_id = $cat[0]->term_id; foreach (get_the_category() as $cat) : $attachmentId = get_option(“category_image_{$category_id}”, ‘null’); $imageArr = wp_get_attachment_image_src( $attachmentId, ‘medium’ ); $imageURL = $imageArr[0]; echo ‘<img src=”‘ . $imageURL . ‘” />’; endforeach; ?>

Display categories with child category separated by letter

You should simply be able to add another foreach loop, using the get_term_children() function. Change your lines: foreach( $tags as $tag ) { $name = apply_filters( ‘the_title’, $tag->name ); $list .= ‘<li><a href=”‘ . get_term_link( $tag ) . ‘” title=”‘ . sprintf(__(‘View all posts tagged with %s’, ”), $tag->name) . ‘”>’ . $tag->name . ‘ … Read more

Hide uncategorized when no category set

ok I found a solution. Let me know if I can incur into troubles doing this. basically we add the category to the url link programmatically. on page request we check if the url begin with a category/subcategory name. if so we prepend just for this request the %category% section to the permalink structure. Nice … Read more