Filtre by tags
-
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
-
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?
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
Oh, so what you were looking for is the syntax to create links to your library that will filter things out then?
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.
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.
-
This reply was modified 2 years, 6 months ago by
Yannick Lefebvre.
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
Oh, sorry. I misunderstood. I will send you the syntax to do this tonight.
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″]
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.
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
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"]
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, 5 months ago by
zebullon.
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
-
This reply was modified 2 years, 6 months ago by
- The topic ‘Filtre by tags’ is closed to new replies.