Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author benohead

    (@benohead)

    The problem is that “Guidelines” is not the category ID but the category name. What you need is the numeric ID for the category.

    If you go to the your Dashboard, select Posts>Categories on the left hand side and then select Guidelines in the list, it will open the category editor. The url should be similar to: https://www.nasgp.org.uk/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=458&post_type=post

    This shows you the category ID (458 in my example). The attribute is called “tag_ID” but it’s the ID of the category.

    If your ID is 458, the shortcode should be: [showtagcloud taxonomy=”category”, category_id=”458″, format=”array”, child_categories=”1″]

    Thread Starter slimyslug

    (@slimyslug)

    Thanks so much for your prompt support.

    OK, I’ve replaced the shortcode with [showtagcloud taxonomy=”category”, category_id=”511″, format=”array”, child_categories=”1″]

    (511 being the category_id)

    But it seems to make no difference.

    That category is itself a child – does that matter? It also has only 6 posts at the moment. I’ve tried replacing “511” with “80” (another top level post category), but that didn’t work either.

    NB this category is a category (not tag) for ‘posts’, not pages.

    Any ideas?!

    Plugin Author benohead

    (@benohead)

    Ok, one issue is that the example I had given on the Plugin FAQ is wrong. Shortcode arguments are separated by spaces, not commas…

    So the shortcode should actually be:

    [showtagcloud taxonomy=”category” category_id=”511″ format=”array” child_categories=”1″]

    Can you please give it a try ? I’m also preparing an update of the plugin since I’ve found some paths in the code where there could be problems but I am not too sure whether it can really happen in the practice. The new version will be available soon but it’d be great if you could adapt the shortcode and check the results with the current version.

    Thread Starter slimyslug

    (@slimyslug)

    You star!!! Yes, that does the trick. Thanks so much, and for a great plugin too.

    (BTW there’s a typo in your FAQ

    “Let’s assume this is the shortcode which was generated:

    [showtagcloud taxomony=”category”, format=”array”, number=”20″, color=”#FF5800″, background=”FFFFFF”]”

    Should be [showtagcloud ***taxonomy***=”category”, format=”array”, number=”20″, color=”#FF5800″, background=”FFFFFF”]”

    Richard

    Plugin Author benohead

    (@benohead)

    great! I’ll update the FAQ in the next update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode’ is closed to new replies.