Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Add Category/Tag/Date/etc... to Page Tops


  #1  
Old Jan 19, 2010, 05:05 PM
kbisignani
 
2 posts · Jan 2010
I apologize if this has been answered elsewhere in advance - I did try to search my way through and came up empty.

I am trying to add a title to a multi-post page, like the Category name, or the Tag name, when someone clicks on a Category or a Tag.

I think I'm close - if I understand the theme correctly, the spot this *should* go in would be in the "Style and edit CENTER COLUMN" section, in the "Content ABOVE the LOOP" area.

The problem is I see no method of telling the theme I want that listed at the top.

I'm starting to think I need some sort of PHP code and pull in a variable from WordPress itself - however I don't know WordPress well enough to even know where to dig up that information.

I noticed that this information is *sort of* listed in the actual title of the page (at the top of the browser window) although things like Dates I'd like to format a little nicer.

Is there a method of doing this? Am I just missing a simple option somewhere?

Thank you very much for anyone who can help!
  #2  
Old Jan 19, 2010, 05:39 PM
kbisignani
 
2 posts · Jan 2010
So I may have answered my own question. I looked in to another Theme with the category titles in it correctly and dug out the following code:
Code:
       <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
       <?php /* If this is a category archive */ if (is_category()) { ?>
       <h1 class="title archive-category"><?php echo single_cat_title(); ?></h1>
       <?php /* If this is a tag archive */ } elseif(is_tag()) { ?>
       <h1 class="title archive-tag"><?php printf( __('Posts tagged %s', 'mystique'), '<span class="altText">'.single_cat_title('', false).'</span>'); ?></h1>
       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
       <h1 class="title archive-day"><?php  printf(__('Archive for %s', 'mystique'), '<span class="altText">'.get_the_time(get_option('date_format')).'</span>');  ?></h1>
       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
       <h1 class="title archive-month"><?php  printf(__('Archive for %s', 'mystique'), '<span class="altText">'.get_the_time(__('F, Y','mystique')).'</span>');  ?></h1>
       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
       <h1 class="title archive-year"><?php  printf(__('Archive for year %s', 'mystique'), '<span class="altText">'.get_the_time(__('Y','mystique')).'</span>');  ?></h1>
       <?php /* If this is an author archive (should never show because the author template exists... */ } elseif (is_author()) { ?>
       <h1 class="title archive-author"><?php _e('Author archive','mystique'); ?></h1>
       <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
       <h1 class="title"><?php _e('Blog Archives','mystique'); ?></h1>
       <?php } ?>
I've thrown that in - I'll want to clean up the formatting but I think this'll do it for me. Sorry for the post. Hopefully someone else will find this beneficial
  #3  
Old Feb 8, 2010, 04:57 PM
meggo
 
1 posts · Feb 2010
Hey, I have no idea how to get this to work. Can you break this down into a couple steps on how I can implement this into my site? I want to make one of my categories into a page.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in post not showing on Category, Archive, or Tag page Tart Atahualpa 3 Wordpress theme 9 Jan 21, 2011 12:47 PM
Add static page to the Category Menu Bar jkfly4 Page & Category Menu Bars 1 Jan 12, 2010 07:00 PM
Add posts from 1 category beneath contents of page wynk Atahualpa 3 Wordpress theme 3 Oct 8, 2009 03:01 AM
[SOLVED] How do I add the date in the tittle of the post? pilsen1 Page & Category Menu Bars 2 Oct 5, 2009 07:17 PM
Archives Page-How can I add the date before the post title when using "postbypost"? fromtheranks Atahualpa 3 Wordpress theme 8 Jul 25, 2009 09:52 AM


All times are GMT -6. The time now is 03:59 PM.


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