• Howdy.

    As requested here is the support ticket for my issue.

    So, the way I understand it is if you use the on_single_display=”global|local”, then you should only get tags that apply to that post, but that doesn’t seem to be working for me.

    Using the Divi Theme Builder for this project.

    Cheers,
    Phil.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    The | in between is used to separate different values available.

    So the value of that field can be global or local.

    To only show the tags associated with the current post (when the single post page is shown) you can use:

    [cool_tag_cloud on_single_display="local"]

    Is that what you have added in there?

    Thread Starter guerre64

    (@guerre64)

    Yes, that is what is added – just the reference to local as per the documentation.

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    What happens if you place the shortcode in the post content iself instead of the page builder module?

    And what happens if you switch that sidebar widget to local?

    Thread Starter guerre64

    (@guerre64)

    Howdy and thanks for the reply.

    I’ll give that a go and see what happens.

    Cheers,
    Phil.

    Thread Starter guerre64

    (@guerre64)

    Oh, and the sidebar widget is already set to show tags from the shown post.

    Thread Starter guerre64

    (@guerre64)

    Nope – doesn’t work in the post either.

    And I deleted it from the sidebar to see if that was causing an issue, but it just is not working.

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    Does that post have any tags applied to it? If not, can you add a tag to it and check if the whole list is replaced by the tag you added.

    Thread Starter guerre64

    (@guerre64)

    Howdy.

    SO I added the tag “shelters” into the post but it is still displaying all the available tags.

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    I’m sorry, I’m not really sure what might be the cause of that. It’s not a known issue.

    Do you have some experience working with code (PHP)? If you do I can assist in debugging the issue from within the code.

    I can’t do it myself since I don’t have access to the admin or the files on your website and the rules on www.remarpro.com state that we can not ask for or accept login information, doing so is grounds for account removal. So what we can do to figure out an issue like this is limited.

    Thread Starter guerre64

    (@guerre64)

    Howdy.

    I’m not really a php programmer as such, but I can modify php under instruction and know what to look for when doing so. I ofdten add php to child themes etc. for special little bits of functionality on some sites, especially Woocommerce.

    What would you suggest?

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    Great.

    The first thing to check is if the shortcode accepts the value for the on_single_display parameter.

    File: wp-content/plugins/cool-tag-cloud/cool-tag-cloud.php

    On line 669 you’ll see the following:

    $l_tag_params = wp_parse_args($atts, $defaults);

    Just below that line add this:

    echo 'value is: ' . $l_tag_params['on_single_display'];

    Then go to view the post and just above the tags it should say “value is local”.

    Let me know if it says that.

    Thread Starter guerre64

    (@guerre64)

    Howdy.

    Sorry it has taken me a while to get back to you.

    Yes, so I inserted the code and the value does indeed return as “local”.

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    Does it return as:

    1) value is local

    2) value is “local”

    Should be the first one. If it returns the second one then that’s the issue, there’s different types of double quotes (regular, left, right, low). When it comes to code in general (and also shortcodes) only the regular ones are accepted.

    But since it’s a value without any blank space in it, the double quote can be removed. So try this shortcode:

    [cool_tag_cloud on_single_display=local]

    Thread Starter guerre64

    (@guerre64)

    Howdy – thanks for that.

    I removed the “” around local and it now works.

    However, I now can’t get the style to work ??

    Cheers,
    Phil.

    Plugin Author WPKube

    (@wpkube)

    Hi @guerre64

    You’re welcome.

    Does the style value also have the same double quotes?

    Try removing the double quotes and add them again manually (not copy/paste).

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Cloud Tags single not restricting to chosen post’ is closed to new replies.