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 » Page & Category Menu Bars »

[SOLVED] Category Display


  #1  
Old Sep 27, 2009, 03:16 PM
yunusb2k
 
11 posts · Sep 2009
Dear,

How can I display Current Category (on category page )

Example : My categories Hosting, PHP, Server.... ok

when i click on any category they are showing me my post but i want to display Current Category Name on page after that my post showing me like headline "You are Viewing >> Category Name"

Thanks
  #2  
Old Sep 27, 2009, 06:54 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
insert the following at the bottom of ATO->Style & edit CENTER COLUMN->Content ABOVE the LOOP

HTML Code:
<?php if ( is_category() ) { ?><h1><?php single_cat_title(''); ?></h1><br><?php } ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 27, 2009, 09:09 PM
yunusb2k
 
11 posts · Sep 2009
Quote:
Originally Posted by juggledad
insert the following at the bottom of ATO->Style & edit CENTER COLUMN->Content ABOVE the LOOP

HTML Code:
<?php if ( is_category() ) { ?><h1><?php single_cat_title(''); ?></h1><br><?php } ?>
Thanks for Support.. Please tel me how can i show description of categories at above with categories
  #4  
Old Sep 28, 2009, 07:10 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try this
HTML Code:
<?php if ( is_category() ) { ?>
	<div><strong><?php single_cat_title(); ?>
	</strong> <?php echo category_description(); ?></div> 
<?php	} ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 5, 2009, 05:12 PM
cyboc
 
8 posts · Sep 2009
Quote:
Originally Posted by juggledad
try this
HTML Code:
<?php if ( is_category() ) { ?>
	<div><strong><?php single_cat_title(); ?>
	</strong> <?php echo category_description(); ?></div> 
<?php	} ?>
Thanks for this excellent tip juggledad. I rolled your solution into a similar solution but made the category description only show on the first page of a category and category name show on all pages. Nevertheless, I could not have arrived at that solution without your tip. Thanks again!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Uncategoried Category from the Display pkmittal81 Page & Category Menu Bars 2 Apr 16, 2010 08:06 PM
Category Page Listing - How to display: Post Title only TotalBalance Excerpts, Read more, Pagination 16 Jan 27, 2010 01:22 PM
how to horizontally display the Category Posts Widget ? bryan85 Plugins & Atahualpa 0 Sep 6, 2009 07:28 PM
[SOLVED] category widget can not display inline in v3.4 duping812 New Versions, & Updating 5 Jul 11, 2009 12:10 PM
[SOLVED] category page list...display images too? joshimotions Excerpts, Read more, Pagination 1 Jun 21, 2009 10:56 AM


All times are GMT -6. The time now is 10:59 AM.


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