• Resolved Anonymous

    Hi there,
    I wondered if there was a way to render the ‘get_links_list’ a little differently. For instance is thete a way to have it display the same way as ‘list_cats(0, ‘All’, ‘name’);’. The reason I ask this is that it is playing havoc with my other lists I have in my right column section. I don’t lke the way the header ‘lists’ is incorporated into the ‘get_links_list’ . I would prefer to name my list <h3>Lists<.h3> and then call justs the links in the list.
    Is there way to do this? Do I make sense? 🙂
    Thanks
    Karl

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have you tried get_links?

    Thread Starter Anonymous

    Hi there,
    Yes I have but that does not list the links as a ‘list’, it just uses ‘breaks’
    Anyway around this?
    Thanks

    Karl,
    Could you post a link to your site? Sometimes it’s easier to help when you can see exactly what is going on.
    Craig.

    Thread Starter Anonymous

    Hi there,
    Well the site is somewhat of a mess so I am embarrassed to show you it, but here is a text file of my lists:
    http://www.mrogerson.co.uk/lists.txt
    I tried that get_lists with an li in the brackets but that threw up an SQL error.
    Any suggestions greatly appreciated.
    Karl

    Try something like this:

    <h2>Blogs &amp; Links</h2><ul><?php get_links('-1', '<li>', '</li>', '', 0, 'name', 0, 0, -1, 0); ?></li></ul>

    I don’t fully understand what all that means but it worked for me to just call the links from wp w/o all the link categories (which I wanted as just one massive list)

    You may not need the numbers at all (I’m sure they mean something) but just the '
    <li>' and '</li>'
    portions. Which when I view the source code output places the li tags at the beginning and end of each link called

    http://codex.wordpress.org/Template_Tags/get_linksbyname

    even better breakdown in the wordpress codex

    Hi, same problem as previously stated here, but on a newer version of WordPress. I tried using your solution, and defining my parameters based on the Codex documentation when that didn’t work, but whenever I add parameters to that function it returns a MySQL database error… So perhaps that bit of code is dated? At any rate, I need someone to help me with this because I don’t know where to go from here. Thanks in advance. ^.^

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘php get_links_list(); Question’ is closed to new replies.