General Talk: Wordpress Qu: customising a list of categories associated with post
Bottom of Page1 to 9 of 9
-
-
CommentAuthorperthmetro
- CommentTimeApr 11th 2008
Sorry about all the WP questions...
This appears under each single post according to what categories i've nominated the post to...Posted on April 11th, 2008 under cat1, cat2,. cat3, cat4
Is there a way I can exclude OR include certain categories (I've searched the WP site and they seem to think there are no parameters allowing it to be done)
If not is there another way i can list the categories the post is attached too but at the same time exclude some categories OR give the code a choice of which categories it can only choose from?
Thanks heaps -
-
- CommentAuthorbluecafe
- CommentTimeApr 11th 2008
There is no such option in the backend. You can however disable the category list (all categories only) in the template files. You need to open index.php and single.php and look for code that says<?php the_category('.') ?>. Now you just need to uncomment this part that it looks like this:<!--<?php the_category('.') ?>-->
and the categories will dissapear. Maybe you then also want the word 'under' to dissapear then just uncomment this part too. -
-
CommentAuthorgnome
- CommentTimeApr 11th 2008 edited by gnome on the 11th April 2008 at 16:46:17 EDT
Why not comment it out in the PHP instead, so it doesn't bother running the method, like this:<!-- the_category('.') -->. -
-
-
CommentAuthorperthmetro
- CommentTimeApr 11th 2008
I actually want some categories to appear but others not to appear (the same as you can do in the side bar) -
-
-
CommentAuthorChristopher
- CommentTimeApr 11th 2008
Wait, so why not just remove the post from the category? The reason it shows the categories below the post is because you chose which categories the post should sit in, right? -
-
-
CommentAuthorgreg
- CommentTimeApr 11th 2008
Posted By: ChristopherWait, so why not just remove the post from the category? The reason it shows the categories below the post is because you chose which categories the post should sit in, right?
pretty much what i said before my post was removed for some unknown reason.. - or maybe i dreamed posting it? -
-
-
CommentAuthorperthmetro
- CommentTimeApr 11th 2008
I want the post to appear under all the categories I've chosen in the side bar but I only want a certain choice of it's categories to appear under the single post. -
-
-
CommentAuthorgreg
- CommentTimeApr 11th 2008
it's my understanding that a posts categories appear under the post because readers may find other posts in those other categories of interest - so only showing a select few categories when really there are more could create confusion and make finding related posts difficult. just my 2c. anyway you would likely need a plugin for this, so you could select the categories that the post is in as well as select which categories show up. -
-
-
CommentAuthorperthmetro
- CommentTimeApr 12th 2008
Greg, in a normal blog i completely agree with you , but this is not a normal blog. I'm using the categories as a type of relational database thing, but that's getting aside from it all...
I think a plugin is the way to go. I know nothing about coding plugins but my presumptuous guess would be that it would be that hard, given it can easily be done in the sidebar.
Anyone wanna try? I reckon it could be someone's claim to fame in the Wordpress plugin world! -
1 to 9 of 9
