These are some readers' responses. Read the full article to see what all the fuss is about.
-
Popular
Categories
- .Net & C# (1)
- Architecture (3)
- C++ (5)
- Coding (4)
- Copyright, etc. (3)
- HTML/CSS (2)
- Java (14)
- JavaScript (6)
- JUnit (3)
- Recommendations (9)
- Risks (7)
- Software projects (2)
- SQL (4)
- Testing (6)
- Tools (4)
- Web (5)
- Web publishing (16)
- Windows (1)
- WordPress (27)
86 responses
Other comment pages: « 1 2 [3] 4 5 »
It works perfectly ! Thanks a lot !
I posted this in the WordPress forum, but then I came across this plugin. It’s not exactly what I was hoping for
but maybe it can be adjusted with not too much trouble (???):
I have to find a way to retrieve the top level category of a post.
I have a few categories that function as top level category. They have no posts themselves. Beneath them are a few categories that contain posts. When I click one of them, for instance index.php?p=23 I want to know to what top level category this post belongs to, like this:
Animals
- Dogs
– Golden Retriever
– Husky
– Rottweiler
In this case Golder Retriever belongs to top category ‘Animals’.
Any way I could still use this plugin?
Thanks!
hey Bennett.. i havent yet used this on my website but i will try it.. i have many posts which are on atleast 2 or 3 categories and it would be cool to highlight a main one. thanks
Bennett,
Thanks so much for this plugin. This is really something lacking in Wordpress.
Is there any way to make topcat return the main category’s slug as opposed to its name? I’m trying to make pretty URLs and would prefer not to rely on index.php calling on the category id.
I tried to pick apart your code, but, alas, I’m not PHP wiz. I beleive Worpress knows the value as $cat_nicename, however. Any help would be appreciated.
—Spencer
Spencer, that’s a good idea. I’ll include it in the next update.
Jack, I think that must be possible (though it’s not what Top Cat does). I’ll see if I can find out how to do it.
I think we are all still breathlessly awaiting an update (says the man without PHP skills).
Thanks for waiting, Spencer. I have recently updated the Evermore plugin, and I am working on Search Meter as well as Top Cat. Also my day job has gotten madly busy, I am living in temporary accommodation as my house is being renovated and my entire family seems to have come down with some kind of virus. I’m not playing for sympathy, but I just wanted to explain why things are rather slow…
Take your time. Maybe I should learn my own PHP, huh?
Bennett,
Thanks again for all your hard work. The new slug feature is a godsend. It really pretties up links on my site. Any idea why the select the top category checkbox isn’t working in WP 2.1-alpha3? The plugin itself is working as all the old post I used topcat on still appear correctly. I just can’t select the topcat of new posts through the GUI or edit the topcat of old posts.
Ah, so they finally broke it did they? I’ve just checked out the WP development trunk, so I will investigate at my pace (as they say in Japan).
Yes, the category checkbox IDs have changed in WordPress 2.1, so Top Cat can’t find them in order to add the adjacent radio buttons. I’ll upgrade Top Cat to cope in a backwards-compatible manner.
In the meantime, does it hurt to set this through PHPMyAdmin?
It should be no problem to set the main category directly — as you have probably figured out, it’s in the
post_categorycolumn of the posts table. The fix is not quite as trivial as I thought, but I still plan to have it done when 2.1 is released.I’ve made a minor update to version 1.3, to make Top Cat work with the latest beta version of WordPress 2.1. There are still a few WordPress 2 wrinkles that I need to iron out and some new features I want to add, so version 1.4 will appear in the fullness of time.
Hello!
Quick question. Your ‘how to use tutorial’ perfectly works for all the Cats i have. But what slug should i use to set background for the Pages the same way?
Thank you in advance.
Paul, Pages don’t have categories, so I don’t think you can do it the same way. I’ve occasionally thought of writing a plugin to let pages have categories… perhaps one day.
That would be the great feature - the same main slug for pages as well.
Anyway thank you for your work!
Other comment pages: « 1 2 [3] 4 5 »