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 »

Category Slugs


  #1  
Old Sep 2, 2009, 05:32 AM
mbro
 
12 posts · Jul 2009
Hi All,

Great theme which I have been using easily until recently.

I am trying to use category slugs and having no luck at all.

Is there any way I can create a link to display all the posts in a specific category using the slug, rather than the category id?

i.e. Category id = 67, Category Name = Test, Category slug = testing

I want to be able to have a link as simple as www.example.com/category/testing

When I do this it doesnt work and stays at the front page.

Can anyone help please or direct me to where I can get help, I have tried on wordpress forums, but no luck.

THanks
  #2  
Old Sep 2, 2009, 05:58 AM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could create a new page template (see http://forum.bytesforall.com/showthread.php?t=3164) and in the code use the is_category() conditional tag to isolate the info you want.

Quote:
is_category('blue-cheese')
When the archive page for the Category with Category Slug "blue-cheese" is being displayed.
taken from Wordpress.org -> http://codex.wordpress.org/Conditional_Tags

or you could try the page2cat plugin and see if you could modify the code a bit
__________________
"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 2, 2009, 06:38 AM
mbro
 
12 posts · Jul 2009
Juggledad - thanks for the very quick reply, much appreciated.

Doesnt seem as though there is any way of doing this that is easier than just using the cat_id function, just hoped I could have used a different method just as easily!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
showing child category menus when selected the parent category mlluch Page & Category Menu Bars 6 Apr 27, 2011 02:12 PM
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 06:36 PM
How to get rid of "Archive for the ‘Name of Category’ Category Headline? harpek Atahualpa 3 Wordpress theme 1 Jul 31, 2009 07:38 PM
BUGFIX 342 Highlighting of category in category menu bar is gone upscho Old Version fixes and change logs 2 Jul 27, 2009 07:28 AM
Category title on category page, not on each post excerpt kicker paulae Excerpts, Read more, Pagination 4 Jun 22, 2009 12:33 PM


All times are GMT -6. The time now is 08:53 PM.


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