• Hello,

    Love your plugins.

    Can’t find a way to filter by category-id AND by tag_id at the same time : for exemple see link for category “France” and tag “Restaurant”…

    Can i use a specific syntax ?

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    There is a mechanism to display a filter selection box with Link Library that is not very well documented at the moment, by using the [link-library-filters] shortcode. This shortcode has many parameters including showtagfilters, showpricefilters and showalphabeticfilters that can be all be set to true or false. Now, this has not necessarily been tested with all ways that Link Library can display links, so it may not working exactly right given your plugin configuration. Is that the kind of thing you were looking for?

    Thread Starter zebullon

    (@zebullon)

    Hello.
    Thank you for your answer but I am trying to put this filter for each page according to two criteria and I do not want visitors to be able to change it.

    Cordially

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Oh, so what you were looking for is the syntax to create links to your library that will filter things out then?

    Thread Starter zebullon

    (@zebullon)

    Hello.

    Yes that’s exactly it.

    a first criterion is a value of a category (Category-id)
    and the second criterion is an evaluator of a tag (tag_id)…

    Cordially.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    You can create links to only display items of specific categories and tags by using the following syntax:

    https://matrix.local/link-library/?cat_name=first-category&link_tags=pub

    In this example, matrix.local is my local development site and link-library is the page in which I’ve put the [link-library] shortcode.

    As you can see, this syntax uses the slugs, and not the IDs, in order to make the links more readable than just seeing a bunch of numbers. Let me know if this helps you our in your project and mark this as resolved if it does.

    Please consider donating to support this plugin’s development.

    Thread Starter zebullon

    (@zebullon)

    Hello

    Thank you for your reply.

    I don’t want to pass the parameter in the called URL but place a code in a page.

    For example to display all links with a “restaurant” label and category is “Paris”:

    [link-library settings=”1″ cat_name=”Paris” link_tag=”Restaurant”]

    This syntax does not work…

    Cordially

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Oh, sorry. I misunderstood. I will send you the syntax to do this tonight.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    The syntax would be [link-library categorylistoverride=”99″ taglistoverride=”98″]

    You need to use the numeric IDs of the categories and tags. You can also list many with commas: [link-library categorylistoverride=”99,97″ taglistoverride=”98,96″]

    Thread Starter zebullon

    (@zebullon)

    Hello
    
    Thank you for your answer but it doesn't work... the plugin displays links unrelated to the filter...
    
    Same problem with only the [link-library settings="1" taglistoverride=”150″] argument.
    
    Cordially.
    Thread Starter zebullon

    (@zebullon)

    Hi,

    I see you have publish a new version 7.3.21. I was in 7.3.17. I have update my site but this does not solve problem…

    Regards

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I see in your block of code above that you have two different types of quotes around the arguments. It should be the first type of quote that should be used for both parameters:

    [link-library settings="1" taglistoverride="150"]

    Thread Starter zebullon

    (@zebullon)

    Sorry but filters works only with this syntax :

    [link-library settings="1" categorylistoverride="162"]

    Do not works with

    [link-library settings="1" taglistoverride="113"]

    and not with

    [link-library settings="1" categorylistoverride="162" taglistoverride="113"]

    Regards…

    • This reply was modified 2 years, 3 months ago by zebullon.
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I made a video to show how things are working on my development site. I also suggest a way to use the plugin’s debug mode to inspect the page output and perhaps see what the problem is:

    https://drive.google.com/file/d/1EH9j7MWKcMbmn47GL_YDEpZbHUHBOs7N/view?usp=sharing

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Filtre by tags’ is closed to new replies.