• Resolved conrich

    (@conrich)


    version 1.10.4

    Hello.

    I make a page with the shortcodes:

    [wordpoints_user_rank user_id=”post_author”] or [wordpoints_user_rank]
    and when I go to the page it says:

    “Shortcode error: The “rank_group” attribute of the

    Shortcode error: The “rank_group” attribute of the [wordpoints_user_rank] shortcode must be a rank group slug.

    shortcode must be a rank group slug.”

    I have a default points type selected.
    I have both the “Ranks” and “Points” components activated.
    I have set up many different rank names set up under the default points.

    What can I do to make the error message stop? I’m not an expert obviously, but any suggestions?

    https://ww.wp.xz.cn/plugins/wordpoints/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author J.D. Grimes

    (@jdgrimes)

    Hello @conrich,

    Thank you for reporting this bug. I have tested it, and I experienced the same thing. The shortcode should know that you want to display the rank for the default points type. I will fix this bug in 2.0. Until that version is released, you can use the points_type attribute for the shortcode, like this:

    [wordpoints_user_rank points_type="points"]

    or

    [wordpoints_user_rank user_id="post_author" points_type="points"]

    etc.

    You just need to replace “points” with the slug of your points type.

    I’m sorry for the long delay before a response. I took the day off yesterday and so I just saw your post.

    Thread Starter conrich

    (@conrich)

    I have tested the shortcodes [wordpoints_user_rank points_type=”points”] and [wordpoints_user_rank user_id=”post_author” points_type=”points”]

    The shortcodes work with some of my points types. For some reason it just doesn’t work for my points type that I have 10 different ranks for.

    Thanks for your dedicated hard work.

    Plugin Author J.D. Grimes

    (@jdgrimes)

    I’m glad it is working for you now. Could you post a copy of the shortcode for the points type that it isn’t working for?

    Thread Starter conrich

    (@conrich)

    I found out why. When using capital letters for the slug, it doesn’t work which was what I was doing. My bad, but I got to start learning somewhere =p. Thanks for your continued development once more 🙂

    Thread Starter conrich

    (@conrich)

    everything is working just fine turns out…just me typing the slug wrong. had changed the name of it in settings and assumed the slug changed. all good now.

    Thread Starter conrich

    (@conrich)

    Resolved

    Plugin Author J.D. Grimes

    (@jdgrimes)

    I’m sorry for the confusion about the slug. The slug has to stay the same so that all of your shortcodes and things won’t break when you change the name of a points type. I’m glad you were able to figure it out though.

    Plugin Author J.D. Grimes

    (@jdgrimes)

    I’ve released version 2.0.0, which fixes this issue. You will no longer have to use the points_type attribute for the default points type.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Ranks shortcodes give error code’ is closed to new replies.