On the main page in WordPress all I want is the category to come before the title of the article posted. So for example if it's a Review, I'd like the article name to be Review: Super 8.
Okay so if you go to my site www.r3entertainment.org it displays the names of each of the articles on the main page. What I want, is for the name of the category the article is in to be placed before the title just on the main page there so people know what type of article it is.
And by the names of the articles on the main page I don't mean the 'Latest Content' widget. I mean the boxes that appear below the huge slider box. Each box has a different article in it. I mean if you can get it to effect the latest content widget too that'd be cool. Didn't think about that. xD
The new code looks like this:
<!--THE POST--> $getCAT = get_the_category(); $firstCAT = $currentCat->cat_name;<?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <div class="date"><div class="date_content"><?php the_time('dS'); ?> <?php the_time('M'); ?><span><?php the_time('Y'); ?></span></div></div> <div class="post_content"> <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title( $firstCAT,"",true ); ?> </a></h2> <div class="single_metainfo">by <?php the_author(); ?></div> <?php the_content(); ?> <?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?> </div>
Did I do something wrong?