WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
Category tree (3 posts)

  1. jchris
    Member
    Posted 1 year ago #

    I cant get the category tree to show. Example: I have a category named "tools" with several child categories "vacations", "staff" and others. When I asign a link to the "staff"-category the category namne "Staff" is shown as heading but the parent category "Tools" does not show.
    If I also add the link to "Tools" both category headings are shown, each containing the same link and without any indentation or other sign of the parent-child relationship.
    I use the Hierarchical Links plugin.

    Is there a way to fix this?

    If not - will this be solved in future releases?

    http://wordpress.org/extend/plugins/link-library/

  2. CarolWP
    Member
    Posted 1 year ago #

    I don't think that Link Library was designed to work with the Hierarchical Links plug-in. However, I've achieved a hierarchical structure by using multiple libraries. You can see it in operation at this link. For a category that has subcategories, check out this link.

    The basic structure is described below. For purposes of my examples, let's assume you want to have top-level categories of category1, category 2, etc. Then below category1, you want to have category1a, category1b, etc. You want your main page to be called linkspage.

    Step 1

    You set up Library 1 to contain all top-level categories (category1, category2, etc.). Switching Method is HTML Get+Permalinks. Do not check the Enable Permalinks option. However, do put linkspage as "Permalinks Page."

    The code for the linkspage page is then:

    [link-library-cats settings=1]

    Step 2

    You then set up Library 2 that includes category1, category1a, category1b, etc. You check the box for "Only show one category at a time," and select the number ID for category1 as the "Default category to be shown when only showing one at a time (numeric ID)."

    You then create a subpage of linkspage that is linkspage/category1. (To make this work, the slug for the page must be the same as the slug for the main category.) The code for linkspage/category1 is:

    [link-library-cats settings=2]
    [link-library settings=2]

    Repeat Step 2 for each of category2, category3, etc.

    The categories on your main (linkspage) page will now link to each of your subpages. And each of your subpages will now show the main category initially, but allow the viewer to choose to see a subcategory.

  3. jchris
    Member
    Posted 1 year ago #

    Thank you. It looks great. I will try thi solution and report back.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic