WordPress.org

Ready to get started?Download WordPress

Forums

Are there any custom wp_links funtions out here? (3 posts)

  1. FionaDixit
    Member
    Posted 9 years ago #

    Hi all :)

    I have a limitation in the wp_lists funtion and wondered if there was any custom functions out there.

    This is the generic way it works.

    '<?php get_links(category, 'before', 'after', 'between', show_images, 'order', show_description, show_rating, limit, show_updated, echo); ?> '

    Now I would like to be able to add another tag so instead of the 'between' usage I would like to be able to have 2 versions of 'between so I can create an opneing and closing tag. If I had this I would be able to list my links like so:

    '<dl> **Generic tag**
    <dt>Heading & Link</dt>
    <dd>description</dd>
    <dl>'

    And my tag would look like this:

    ''<dt>', '</dt></dd>', '<dd>', '</dd>', FALSE, 'category', TRUE, TRUE, -1, false);'

    If I apply this at present it works but leaves out the closing dd tag.

    Anyone?

  2. Lorelle
    Member
    Posted 9 years ago #

    Your best bet is to style UL LI tags (nested list hell) to emulate the DL list. It's not very hard and very controllable.

    http://codex.wordpress.org/Customizing_Your_Sidebar
    http://codex.wordpress.org/Styling_lists_with_CSS

  3. FionaDixit
    Member
    Posted 9 years ago #

    Hi there, very confused :)

    So can I do what you mention with my def list? Not 100% sure how to do this. sorry :(

    This how it currently renders:

    '<dl><dt>Link Name<dd>The desription goes here</dt></dl>'

    See no closing dd

    Any help most welcome :)

    Thanks
    F

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.