• jaykaybee

    (@jaykaybee)


    I wonder if you could save me some time and indicate whether Link Library pages would work with a tag cloud generator? Is there some way of showing just the link tags in a tag cloud in a sidebar? That would be a nice addition to search.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter jaykaybee

    (@jaykaybee)

    PS I found another topic which asked this question, but unfortunately I am too much of a WordPress newbie to understand your answer: https://wordpress.org/support/topic/how-to-get-link-library-tag-cloud/#post-11375056. I’ve posted there asking for elaboration on that topic, or perhaps you can explain fresh here, at a remedial level if possible. Thanks!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Link Library should work with tag cloud generators that support custom post types. The post type name used by Link Library is link_library_links.

    That being said, it might make more sense for me to add a tag cloud feature in the plugin.

    What function would you like for the tag cloud? Would you want the link categories to be links to jump to these sections of the link page? Would you want to display this tag cloud on pages other than your library of links?

    I started investigating and WordPress does have a built-in tag generation function. By default, the links don’t go anywhere though, but I could make them links to the categories.

    Thread Starter jaykaybee

    (@jaykaybee)

    Thanks for your response. So far I have not found a tag cloud generator that supports custom post types. Can you list a few by name? I’ve tried “Tag Cloud” and “Ultimate Tag Cloud” and “Cool Tag CLoud.”

    What is the name of the built-in tag generation function? Where do I access it to use it in a sidebar etc? When you say, “By default, the links don’t go anywhere though, but I could make them links to the categories” I don’t quite understand. I do not want to rely on categories only for tags, I really want to use tags in the tag cloud.

    So to answer your questions:
    1. What function would you like for the tag cloud?
    – Would like to be able to configure the tag cloud to display tags from the link library, while excluding other tags
    – Would like to add this tag cloud to a sidebar that I would make using “Content Aware Sidbars” (plugin) so I could tell it to display on one or more pages that show Link Library display
    – I actually don’t really care about the “cloud” nature of the tag cloud. In other words, I don’t need frequency counts, or graphics. I just want a list of tags, so people can filter the links, not just by category, but by tag.
    – In essence, the benefit of a tag is that you can have an entry in one category that has multiple tags, even if it doesn’t belong to multiple categories. With a tag cloud, the user can filter to all the links that share a tag.
    – As an example, I am designing a list of resources for consumer health and finance. These are broad topics. I might just have two categories: health, and finance. But for each link that I list, I may want to use several tags from among dozens of possible tags, e.g. (using # to denote tag), #app, #book, #website, #article. Then someone could filter the links for all the books listed.

    2. Would you want the link categories to be links to jump to these sections of the link page?
    – Not sure I understand this question, I would want the tag cloud to provide links that “filter” the link libraries so only the links with the selected tag would be shown. I don’t really need categories in the tag cloud. Just tags. (Although perhaps others would want categories in there?)

    3. Would you want to display this tag cloud on pages other than your library of links?
    – Probably not
    – However, I plan to have multiple pages displaying library of links in different display configurations. So would want to use the tag cloud, optionally, on multiple pages.

    Thanks again for this great plugin!

    PS Ultimate Tag Cloud widget plugin seemed like it should work, and would accomplish most or all of the above, but for some reason it does not “see” the Link Library tags.

    Thread Starter jaykaybee

    (@jaykaybee)

    PPS I tested the “Custom Post Type Widgets” plugin, and under Taxonomy dropdown it shows Tags link_library_tags. So does the plugin “Ultimate Tag Cloud”. See screenshot:
    https://www.dropbox.com/s/k19f8f7kfava56p/Screenshot%202019-03-31%2021.56.15.png?dl=0

    However, when I display the page, Ultimate Tag CLoud shows no links.

    The Tag Cloud widget from “Custom Post Type Widgets” does show the links, screenshot:
    https://www.dropbox.com/s/ksdlg37cxfclnjj/Screenshot%202019-03-31%2021.57.36.png?dl=0

    But when I click on the links I get this error message, at URL https://devgo.jeffbelkora.com/?link_library_tags=finance: “It seems we can’t find what you’re looking for. Perhaps searching can help.”
    Screenshot:
    https://www.dropbox.com/s/apqt7l99o3skz60/Screenshot%202019-03-31%2021.58.13.png?dl=0

    So it seems some tag cloud widgets can “see” and display the right links in a tag cloud, but they don’t actually work as intended.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Ah, now I understand what you are looking for. This functionality actually exists in Link Library, but I have not yet documented it (yes, I know, not very useful).

    You can use the shortcode [link-library-filters] to display a list of tags to use to filter links displayed. If you want this filter control to appear in a widget, you will need to activate the ability to use shortcodes in widgets, if you have not done so already (https://digwp.com/2010/03/shortcodes-in-widgets/)

    There are a number of options that you can use as you call the shortcode:

    – includetagids = specify exact list of tag ids to be displayed
    – excludetagids = specify tag ids to be excluded
    – showtagfilters = true or false. Shows or hides tag filters section
    – taglabel = Label for tag section
    – showpricefilters = true or false. Show or hides price filters section
    – pricelabel = Label for price section
    – settings = Library configuration to be used

    I hope this allows you to implement the functionality you are looking for. Let me know and please consider donating to support this plugin’s development.

    Thread Starter jaykaybee

    (@jaykaybee)

    Yannick, thanks, I would like to test this. Given my beginner status, could you give me an example of the syntax – how do I specify the options as I call the shortcode?

    Also, where can I find the tag ids? Is it just the name of the tag, or I assume it’s a numeric ID?

    Thanks, if this all works out I will contribute a premium donation, this is going to be a great plugin for my needs.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Yes, it is a numeric ID. It is true that I forgot to display these IDs on the Tags page. I have added a column to the tags table to show the IDs now. Just update to the latest version to see this addition.

    As for options, it would look something like this:

    [link-library-filters tablabel=”Tags” showpricefilters=”false” settings=”1″]

    This would display all tags found. If you only want some tags:

    [link-library-filters includetagids=”34,28,42″ tablabel=”Tags” showpricefilters=”false” settings=”1″]

    Thread Starter jaykaybee

    (@jaykaybee)

    Hi Yannick,

    I’m excited about this functionality. I updated to 6.2.10, correct?

    Unfortunately, I’m seeing a couple of issues:

    1. I put the shortcode in an html sidebar widget. Now, the sidebar appears to crowd out the main area, and so the main area (showing the link library itself) appears below the sidebar. Screenshot: https://www.dropbox.com/s/qh3mo7m15e3qzuy/Screenshot%202019-04-02%2020.43.59.png?dl=0
    – I am guessing this is a problem with the control of the width of the sidebar, perhaps interacting with my theme (Astra). Do you know if I can adjust the width of the sidebar, perhaps using CSS? I “inspected” the page and found there are some elements such as “div.sidebar-main” and “div.textwidget.custom-html-widget”. See screenshot: https://www.dropbox.com/s/iikqszwqzpubbv3/Screenshot%202019-04-02%2020.47.16.png?dl=0
    – I realize this may be out of scope for your plugin support, but since I am new to WordPress and not a developer, could you point me to the solution to fix this problem?

    2. Your shortcode options do not suppress the price.
    I used your suggested shortcode:
    [link-library-filters includetagids=”57, 58″ tablabel=”Tags” showpricefilters=”false” settings=”1″]
    and you can see the screenshot still shows the price:
    https://www.dropbox.com/s/qh3mo7m15e3qzuy/Screenshot%202019-04-02%2020.43.59.png?dl=0

    Thanks again for this plugin!

    Thread Starter jaykaybee

    (@jaykaybee)

    Yannick, I’ve been experimenting, keep in mind my ignorance here!

    1. When I add the [link-library-filters] shortcode to the WordPress html sidebar widget, somehow this makes the sidebar no longer display as a sidebar, instead it is above the page content.

    I tried playing with CSS to change the widths of various elements, that I found by inspecting the page:
    .linklibrary-filters {
    width: 60%;
    }
    .sidebar-main {
    width: 70%;
    }
    .secondary.widget-area.secondary {
    width: 60%;
    }
    .ast.container {
    width: 60%;
    }

    I can control the width of the sidebar using CSS, but the sidebar still appears above the page content.

    When I delete the shortcode from the sidebar widget and add text there, the sidebar displays normally next to the page content.

    2. For me, your extensions to the shortcode don’t work as controls. The simple shortcode [link-library-filters] gives me the same output as [link-library-filters includetagids=”57, 58″ tablabel=”Tags” showpricefilters=”false” settings=”1″]
    – In particular, the price is shown, which I do not desire.

    Please advise. I think this is the last barrier to my adoption of this plugin. I will be happy to make a donation. I would prefer if it would work out with this tag-filtering functionality (which is very cool)

    Thanks!

    Thread Starter jaykaybee

    (@jaykaybee)

    PS I found an article that suggests 3 main reasons for the sidebar displacing page content. Could one of these be the reason?
    See https://www.wpbeginner.com/wp-themes/how-to-fix-the-sidebar-below-content-error-in-wordpress/

    “There is an unclosed div element on the page. It could also be that there is an extra div element being closed on the page which makes it seem like that your sidebar is outside the wrap element.”

    I ran my page through the diagnostic they suggested, and it did find unclosed divs:
    https://validator.w3.org/nu/?doc=https%3A%2F%2Fdevgo.jeffbelkora.com%2Flink-library-test-page%2F%3Flink_tags%3D%26link_price%3D

    Error: End tag div seen, but there were open elements.
    From line 601, column 16; to line 601, column 21

    Error: End tag div seen, but there were open elements.
    From line 602, column 1; to line 602, column 6

    Error: End tag div seen, but there were open elements.
    From line 670, column 16; to line 670, column 21

    Error: End tag div seen, but there were open elements.
    From line 718, column 2; to line 718, column 7

    Error: Stray end tag div.
    From line 763, column 2; to line 763, column 7

    The other issues they cite in this article are:
    2. Improper width ratio. If your container width is only 960px, then you have to keep things proportional. For example, content width 600px, and sidebar width 300px with 60px margin between them.

    3. The other issue could be float property. You have to make sure that you add float: left; and float: right to the appropriate elements. If you do not do that, then it will not work.

    I do not know how to interpret all of these suggestions.

    Please advise, thanks!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry for the long response time. I was travelling for work for past 12 days. Now back home. Indeed, there was a mismatched div tag in the output of that shortcode. I have corrected it. Also corrected issue with not being able to hide the price section.

    Please update to latest version and confirm if this works as expected.

    So did you resolve the issue with the tag shortcode displaying the price/free? I am using the shortcode mentioned here but it’s still showing the price/free, which I don’t want.

    Also, is there a way to display tags as a tag cloud instead?

    thanks – your plugin is great so far! I hope I can get it to suit my needs.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I thought I had fixed it. It worked in my tests after last update. No way to display a tag cloud at the moment.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Using a tag cloud in sidebar with Link Library page’ is closed to new replies.