|
2006-07-22, 03:59 PM | #1 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
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. |
2006-07-22, 11:37 PM | #2 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
I don't have a solution, but I have a suggestion: Mention the blog script you're using.
__________________
~Warm and Fuzzy. |
2006-07-23, 12:32 AM | #3 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
my bad...WP.
|
2006-07-23, 02:39 AM | #4 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
No worries. WP is the standard... so I guess I shouldn't have bothered asking.
__________________
~Warm and Fuzzy. |
2006-07-23, 03:14 PM | #5 |
Wheither you think you can or you think you can't, Your right.
|
I dont use wordress, so I'm no help.
ronnie. |
2006-07-23, 05:35 PM | #6 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
Ronnie, is it possible with the blog software you use?
__________________
Become part of the future of pornography....promote the first stages of VIRTUAL REALITY|shocking| |
2006-07-24, 11:26 AM | #7 |
Wheither you think you can or you think you can't, Your right.
|
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 |
2006-07-24, 02:53 PM | #8 |
Oh no, I'm sweating like Roger Ebert
|
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. |
2006-07-24, 06:04 PM | #9 |
Wheither you think you can or you think you can't, Your right.
|
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 Last edited by ronnie; 2006-07-24 at 06:06 PM.. |
2006-07-24, 07:23 PM | #10 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
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/
__________________
~Warm and Fuzzy. |
2006-07-25, 01:12 AM | #11 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
gracias amigo
I seem to be technically challenged to say the least, I'm still trying to figure out what a tag is|shocking|
__________________
Become part of the future of pornography....promote the first stages of VIRTUAL REALITY|shocking| |
2006-07-25, 01:33 AM | #12 | |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
Quote:
I should've been born a hunting dog.
__________________
~Warm and Fuzzy. |
|
2006-08-02, 02:16 PM | #13 |
Oh no, I'm sweating like Roger Ebert
|
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:
<?php if (is_category(cams)) { echo "<ul>"; wp_get_linksbyname('cams'); echo "</ul>"; } elseif (is_category(teens)) { echo "<ul>"; wp_get_linksbyname('teens'); echo "</ul>"; } else { echo "<ul>"; wp_get_linksbyname('blogroll'); echo "</ul>"; } ?> 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. |
2006-08-02, 03:25 PM | #14 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
Thanks for the help walrus
Although, I think I'll probably fuck up 50 times before I get it right.
__________________
Become part of the future of pornography....promote the first stages of VIRTUAL REALITY|shocking| |
2006-08-03, 12:00 PM | #15 |
Wheither you think you can or you think you can't, Your right.
|
php can be golden..
ronnie |
2006-08-03, 03:31 PM | #16 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
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.
DON'T FORGET THE SEMI-COLONS!!!
__________________
~Warm and Fuzzy. |
|
|