Support » Fixing WordPress » Links on Main Page AND Separate Page, Different Order

  • Ok, here’s what I want to do:

    I want a separate links page that shows ALL categories and ALL links, sorted by name. I also want the main page to show link categories that have links (all others should be hidden), but I want the links that show to be in random order, with a set limit showing.

    get_links_list() works great for this, except I can’t have BOTH all links showing in one place and some links showing in the other. I’ve tried get_linksbyname, get_links, and one or two similar options, but I can’t find a way to do what I describe above. I’d appreciate any help. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • when you say “main page”, are you refering to the sidebar on the index.php?
    If so, perhaps using wp_get_links in the sidebar, and setting the parameters in the manage links tab of the admin panel will do the trick. If not, perhaps be more specific when you say “main page”.

    Sorry I didn’t get back to this sooner…Yes, I mean the sidebar. I’ve set the parameters in the manage links tab, but those settings apply to wherever I put wp_get_links (which is both on the links page I created and in the sidebar). I want a links page that lists all the links and categories, in alphabetical order (to be clear, the categories are listed in alphabetical order, and then the links under each cat are sorted in alphabetical order), and then in the sidebar, I want to limit how many links under each category are shown, and I want those sorted in random order. Is there a way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Links on Main Page AND Separate Page, Different Order’ is closed to new replies.