Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to display WordPress links without using an unordered list structure?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43657
    akurtula
    Participant

    Hi

    I know that wordpress has removed the links feature but there is a plugin which does exactly the same thing. At the moment, I can display links like this:

    Is there a way to display these in a different way, something like:

    link

    description of the link

    thanks

    #129799
    sloveland
    Participant

    Just curious, are you wanting it to print out as paragraphs because of a styling issue? Semantic issue?

    #129800
    sloveland
    Participant

    http://codex.wordpress.org/Function_Reference/wp_list_bookmarks

    Should be able to override the default parameters for category_before and category_after. Something like:

    &category_after=

    ‘); ?>

    #129840
    akurtula
    Participant

    I wanted to change the structure of how the links display. This is how I am doing it

    #129841
    akurtula
    Participant

    $links = get_bookmarks();

    foreach ($links as $key) {
    echo “

    link_url . “”>” . $key->link_name . “

    “;
    if ($key->link_description) {
    echo “

    ” . $key->link_description . “

    “;
    }
    }

    I know I might have some problems with the inverted commas but thats jus because these (‘) interfered with the markdown code

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.