WordPress.org

Ready to get started?Download WordPress

Forums

Splitting up the get links (4 posts)

  1. Vohiyaar
    Member
    Posted 9 years ago #

    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.

  2. Root
    Member
    Posted 9 years ago #

    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.

  3. Vohiyaar
    Member
    Posted 9 years ago #

    I got the relevant information from http://wiki.wordpress.org/TemplateTags
    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,
    http://www.antiastrology.com/blog/
    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.

  4. Vohiyaar
    Member
    Posted 9 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.