ID); $cat_id = $categories[0]->cat_ID; //then i get the data from the database $cat_data = get_option("taxonomy_$cat_id"); //and then i just display my category image if it exists if (isset($cat_data['cat_color'])){ echo 'style="background-color: '. $cat_data['cat_color'] .'"'; } ?>> $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); if ( $images ) { $total_images = count( $images ); $first_img = array_shift( $images ); $image = wp_get_attachment_image( $first_img->ID, array(640, 480) ); } else { $total_images = 0; $first_img = ''; $image = ''; } } ?>
>

→', 'surfarama' ) ); ?>

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'surfarama' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'surfarama' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?>

'' ) ); ?>