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

  1. FionaDixit
    Posted 10 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>

    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.


  2. Lorelle
    Posted 10 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.


  3. FionaDixit
    Posted 10 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 :)


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.