![]() |
Displaying different link categories
Hey guys, I was wondering if anyone here has knowledge of how to display different link categories with different post categories?
I have 3 blogs that are interconnected on one main site, but I really want them to each have their own seperate links for obvious reasons. any help is appreciated.|thumb |
I don't have a solution, but I have a suggestion: Mention the blog script you're using. :D
|
my bad...WP.
|
No worries. WP is the standard... so I guess I shouldn't have bothered asking. :D
|
I dont use wordress, so I'm no help.
ronnie. |
Ronnie, is it possible with the blog software you use?
|
Honestly, I am not totally sure what you are asking. I've read it a couple times and I am still not sure, or I am just wacked this week..:)
I use movable type. ronnie |
Basicly what he's trying to ask is if anyone knows if it is possible to display different groups of links depending upon the post category you are viewing.
I admit that I doubt it, I also wouldnt be surprised if it was possible to do. |
Oh, okay, boy I missed that one. Actually probably would'nt be hard to do with php and mysql. If you could just grab a variable then you could pull all the links you want from what ever catagory.
ronnie |
I don't use WP, but is this the kind of thing you're looking for?
http://rudd-o.com/projects/wp-list-main-cats/ EDIT: For future reference, I found it here: http://wp-plugins.net/ |
gracias amigo|thumb
I seem to be technically challenged to say the least, I'm still trying to figure out what a tag is|shocking| |
Quote:
I should've been born a hunting dog. :D |
I was checking around in the WP template tags today for somthing I want to do on one of my blogs and ran across your solution.
Lets say you have a site http://www.yoursite.com and you want to have different links on your home page than a couple of your category pages. Say you have a cams category and a teen category. Make 3 link categories...one well call blogroll and it is your main index page links. One call cams and the other lets call teens. Where you want the links to appear on your sidebar, add this: Code:
if (is_category(cams)) { Disclaimer: I haven't tested it and usually I fuck it up the first dozen or so times before I get it right so be prepared for a little trial and error. |
Thanks for the help walrus:D
Although, I think I'll probably fuck up 50 times before I get it right.|violin| |
php can be golden..:)
ronnie |
Or it can be a real sun-of-a-bitch, and turn your whole site into a big picture of a polar bear covering his nose in the middle of a snow storm.
|banghead| |banghead| |banghead| DON'T FORGET THE SEMI-COLONS!!! |
All times are GMT -4. The time now is 12:06 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc