WordPress.org

Ready to get started?Download WordPress

Forums

unordered nested HTML (7 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    Is it possible to have both the <?php get_links_list() ?> and <?php get_archives() ?> not to be unordered nested HTML?

  2. OperaManiac
    Member
    Posted 10 years ago #

    whats wrong with using css?

  3. Oisin
    Member
    Posted 10 years ago #

    I suppose it's possible, just change parts of the code for the functions (the li's are called in the functions, not from index.php, right?)...
    But why wouldn't you want them to be? Would you have them as ordered lists instead, or...?

  4. Beel
    Member
    Posted 10 years ago #

    I don't know about get_links_list but you can forgo the default list layout in get_archives and have a custom "$before link $after"

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    Same problem here. I'd really like to have the descriptions in my links list be output _under_ the links (via <br \>) instead of right beside them, just separated by a space. As far as I can see, there is no possibility to influence this behaviour through css-styles, because the complete content (output) of the list ist generated through wp_get_links_list() or get_links_list().
    Now, while I'm able to manipulate the php-code of the corresponding links.php include-file, I don't understand php and don't know exactly where in the code (and how) I can make the necessary changes.
    Anyone have an idea? Your help would really be appreciated (especially plug-and-play php-code-snippets ;-) )

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Thank you for the hint. In the meantime I'had found that out for myself but: It doesn't seem to work. Whatever formatting-tag I enter in the link manager as "between" won't be recognized. In fact, a br-tag already was default-value for the respective (and only) category linked to all my links.
    Now, I'm going to experiment with the get_links() function instead, which was referenced to in another thread with a similar problem regarding the html hardcoded into the output of the lists functions.

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    get_links() works just fine and solves all of the aforementioned problems. A description of all the parameters can be found here in the WordPress Wiki.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.