Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to: display category name on category pages


  #1  
Old Feb 23, 2011, 01:08 PM
wittyusername
 
61 posts · Jan 2011
muddling my way though a career.
i though it would be there by default, but nope. not there.

I tried adding <h1>Category: %category%</h1> to KICKER: Multi Post Pages but it added it to the top of every article on my category page.

I'd like to do the same thing for tag pages as well.
__________________
Wordpress 3.2.1 | Atahualpa 3.7.3 | Webfaction Hosting

Last edited by wittyusername; Feb 23, 2011 at 01:14 PM.
  #2  
Old Feb 23, 2011, 02:20 PM
wittyusername
 
61 posts · Jan 2011
muddling my way though a career.
I went with this in my index.php file but i'd rather not hack core. is there a better solution?

Code:
<?php # error_reporting(-1);
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 

?>
<?php if ( is_category() ) { ?><h3 style="margin: 0.2em 0;">Category: <?php single_cat_title(''); ?></h3><?php } ?>
<?php if ( is_tag() ) { ?><h3 style="margin: 0.2em 0;">Tag: <?php single_tag_title(''); ?></h3><?php } ?>
__________________
Wordpress 3.2.1 | Atahualpa 3.7.3 | Webfaction Hosting
  #3  
Old Feb 24, 2011, 05:54 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
just add that to ato->Style & edit CENTER COLUMN->Content ABOVE the LOOP
HTML Code:
if( is_category() ) { ?><h3 style="margin: 0.2em 0;">Category: <?php single_cat_title(''); ?></h3><?php };
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Feb 25, 2011, 06:25 AM
wittyusername
 
61 posts · Jan 2011
muddling my way though a career.
Dang. SO obvious now. Thank you!
__________________
Wordpress 3.2.1 | Atahualpa 3.7.3 | Webfaction Hosting

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to have the category menu bar display pages too? marsyg Page & Category Menu Bars 6 Jan 29, 2011 11:52 AM
%category-linked% bug? It don't display the first assigned category for a post. conon Post-Kicker, -Byline & -Footer 2 Mar 30, 2010 04:59 AM
[SOLVED] Category / Archive display problem with category menu bar madfab685 Page & Category Menu Bars 4 Jan 2, 2010 04:12 AM
Making separate pages to display posts by category; also, how to embed WP page Eric Bobrow Atahualpa 3 Wordpress theme 1 Dec 2, 2009 12:34 AM
How to Display Comments on Category Pages Only fylraen Comments, trackbacks & pings 4 Nov 5, 2009 02:04 PM


All times are GMT -6. The time now is 02:58 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.