Zaaba, there are different tags for grabbing a list of lists with labels (get_links_list) and just getting one. I would recommend reading the documentation on the link template tags.
Zaaba, there are different tags for grabbing a list of lists with labels (get_links_list) and just getting one. I would recommend reading the documentation on the link template tags.
Where did you find
this code? The Links.php file?
<?php wp_get_linksbyname('Links'); ?>
@gregor: found this by doing a search on the Forums. Its also noted in the Wiki.
Don't know if anyone's still looking for this info, but I found this in the Wiki:
<?php wp_get_linksbyname('category'); ?>
Where it says "category" you either fill in the links category name or you leave it blank. If you leave it blank, it will automatically pull in links from all categories. (I misunderstood a previous comment to mean that I should leave "links" in that space, but when I read it again, I realized that person was saying the same thing I am. I thought maybe if I explained it in my own words, it would help anyone who had the same misunderstanding I did.)
It would look like this:
<?php wp_get_linksbyname(''); ?>
<?php wp_get_linksbyname(''); ?> <--this doesn't pull up anything for me. Putting the link category name in there does, however, which is nice. The one thing that's weird is that I have to add the link category name in front of the tag--I could have sworn it would put the link category name up automatically, but I guess I'm mistaken. It's no big deal now. Thanks for this thread, though--it was a big help!
I use:
<?php wp_get_links(1); ?>
It only displays the category selected in the () but the end result is as can be seen on my links page:
http://www.marzar00.finditmax.com/links.php
Regards
Marzar
Cool--thanks so much!
This topic has been closed to new replies.