php - Categories Not Showing When there's 1 Post -
i'm having odd issue @ moment.
i posted first blog post on wordpress blog , reason,the category list isn't showing.
i posted post test out , categories began show both posts. thought miracle had happend.
so, deleted test post (going 1 post), , issue began again.no category list.
i'm stumped because code seems sound , why posting post make category list work?
you can click [here]{http://www.noellesnotes.com} visit site , see issue i'm having.
i think found issue. it's in code below:
<?php /* translators: used between list items, there space after comma */ $category_list = get_the_category_list( __( ', ', 'ribbons-and-clouds' ) ); /* translators: used between list items, there space after comma */ $tag_list = get_the_tag_list( '', __( ', ', 'ribbons-and-clouds' ) ); if ( ! ribbons_and_clouds_categorized_blog() ) { // blog has 1 category need worry tags in meta text if ( '' != $tag_list ) { $meta_text = __( 'this entry tagged %2$s. bookmark <a href="%3$s" title="permalink %4$s" rel="bookmark">permalink</a>.', 'ribbons-and-clouds' ); } else { $meta_text = __( 'bookmark <a href="%3$s" title="permalink %4$s" rel="bookmark">permalink</a>.', 'ribbons-and-clouds' ); } } else { // blog has loads of categories should display them here if ( '' != $tag_list ) { $meta_text = __( 'this entry posted in %1$s , tagged %2$s. bookmark <a href="%3$s" title="permalink %4$s" rel="bookmark">permalink</a>.', 'ribbons-and-clouds' ); } else { $meta_text = __( 'this entry posted in %1$s. bookmark <a href="%3$s" title="permalink %4$s" rel="bookmark">permalink</a>.', 'ribbons-and-clouds' ); } } // end check categories on blog printf( $meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); ?> see how 1 of if statements tells not list categories if there's one?
does know how edit code make categories display no matter what?
looks fine, maybe theme problem? try theme , see if work
Comments
Post a Comment