Support » Fixing WordPress » Splitting up the get links

  • I was wondering if there is a way to only display a certain category of links as a block on the sidebar.
    I’m thinking this would involve passing some variables into the get_links function. Something like the number of the category of links to either ‘not display’ or ‘display’.
    I want to do this so I can have a particular category shown, followed by for example, the search box, then the calendar and then the rest of the categories of links.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well you prolly need to split the function call at php level. There has been a post on this in the last 24 hrs. Just have a look. Its all in there somewhere.

    I got the relevant information from
    So I’ve called wp_get_links with the category id of a particular link list. I don’t want this category to show up in the wp_get_links_list function to get called.
    Here is the page,
    The Navigate is the category of links I want to call at the top of the menu sidebar. I do it using wp_get_links(categoryid).
    If you scroll down the menu sidebar, you’ll see that it gets called again by wp_get_links_list. I want to avoid this.

    I’ve fixed this by making a php include for my main navbar and calling all links in the regular sidebar. Thanks for the help…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Splitting up the get links’ is closed to new replies.