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 » 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,730 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,730 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 12:04 PM.


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