Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Category Slugs (http://forum.bytesforall.com/showthread.php?t=3239)

mbro Sep 2, 2009 04:32 AM

Category Slugs
 
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

juggledad Sep 2, 2009 04:58 AM

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

mbro Sep 2, 2009 05:38 AM

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!


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

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