WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
How to show links in two categories? (3 posts)

  1. sommernyte
    Member
    Posted 3 years ago #

    Does the shortcode allow for more than one category to be shown? I know it can be done in the settings, but I will have so many pages with links, I don't want to have to have a new setting for each one.

    Let's say I have two categories, ID 2 and ID 3. I want to show two lists on a page, because I want those that are in ID 2 AND 3 to be displayed differently than those that are JUST in ID 3.

    I know that I can use shortcode to show links that are in one, but not the other category:

    [link-library settings=1 categorylistoverride="3" excludecategoryoverride="2"]

    But I can't seem to find a way to show links that are in two specific categories. Is there a way to do this?

    Let me know if I'm not being clear...

  2. Yannick Lefebvre
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Sommer,

    Links that are in multiple categories aren't handled extremely well in Link Library at this time. I don't currently have a way to specify a filter for links that are in multiple specific categories. This is actually the first time I get this request.

    Unfortunately, I won't have time to look at implementing this new feature until December.

    If you can wait that long, then stay tuned for updates to Link Library in that time frame and I will see how this could be added.

    Yannick

  3. sommernyte
    Member
    Posted 3 years ago #

    I hope it's something as simple as a shortcode update that would then just pass a conditional on to the code, or an array if you want more than one category. Not sure how it currently pulls from the DB, but I'd assume it would pull by category first, so it would hopefully be rather easy (easier said than done, I'm sure!).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic