• zaaba

    (@zaaba)


    Using <?php get_links_list(); ?> results in an unnecessary <li id="Links">Links
    being added before the

    • ...

    display of the links.
    How do I get rid of it?
    Also, has anybody been successful in using the mod_rewrite permalink structure in an installation of wordpress in a lower level directory such as /wordpress? This is to keep the root directory clean. Plus, any news on whether there are any plans for wp to be installable on any directory and not specifically the root dir?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Matt Mullenweg

    (@matt)

    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.

    gregor

    (@gregor)

    Where did you find

    <?php wp_get_linksbyname('Links'); ?>
    this code? The Links.php file?

    Thread Starter zaaba

    (@zaaba)

    @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:
    https://www.marzar00.finditmax.com/links.php
    Regards
    Marzar

    Cool–thanks so much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting Rid of “Links” in get_links’ is closed to new replies.