WordPress.org

Ready to get started?Download WordPress

Forums

BadgeOS
[resolved] Any shortcodes for display of available badges? (17 posts)

  1. Martin
    Member
    Posted 1 year ago #

    I was wondering if there's a way to display all or certain types of badges / awards on a page?

    thought is members can go find a quest or badge they'd like to get and go through the steps to get it/them.

    Are there are shortcodes or already predefined pages available?

    http://wordpress.org/extend/plugins/badgeos/

  2. Martin
    Member
    Posted 1 year ago #

    /badges (which is the slug for the achievement type) just takes me to the site's homepage incidentally

  3. Martin
    Member
    Posted 1 year ago #

    OK, this isn't documented anywhere that I can find however I did see reference to a shortcode in the screenshots.

    I've used a shortcode of [badgeos_achievements_list type=badges limit=10] since the slug for the achievement type is /badges and get nothing showing on my test page here:
    http://www.geekandjock.com/badges-awards-achievements

    Can you tell me what I'm doing wrong or whether there's a reference page for shortcodes that I've missed?
    Thanks

  4. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

    All available shortcodes, including badgeos_achievements_list, are described in detail under the BadgeOS > Help / Support submenu in WordPress shown here: http://d.pr/i/jyeh

    Please verify you have Badges created and published. You could also try just using the default [badgeos_achievements_list] and see what is displayed.

  5. Martin
    Member
    Posted 1 year ago #

    Yes, I've got published and awarded badges.
    I've changed the shortcode to just it's base shortcode, with the same result. Similar error message except the award type is missing which should default to something like 'achievements' or similar.

    Thoughts?

  6. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

    Can you verify that when you create a new badge in WordPress the URL contains /wp-admin/edit.php?post_type=badges

  7. Martin
    Member
    Posted 1 year ago #

  8. Martin
    Member
    Posted 1 year ago #

    Sample badge at http://www.geekandjock.com/badges/new-members-rock if that's helpful - note my Admin is listed twice as a recipient.

  9. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

    That should certainly work. I went ahead and added a bug Issue to Github so we can test and confirm the problem:

    https://github.com/opencredit/badgeos/issues/33

    I'm going to mark this complete so we can track it on Github.

  10. Martin
    Member
    Posted 1 year ago #

    Yeah I know.
    The failure of the shortcode, the failure on obeying the awarding limit and the failure of seeing the BuddyPress Achievement tab (and awarded badges) have been driving me crazy these last few days and preventing me from actively advertising the site's badging system.

    Really looking forward to getting those things nailed to get this baby rocking.

  11. Martin
    Member
    Posted 1 year ago #

    Wondering on any update to this bug?
    I can see the Ajax request spin and fetch back nothing which I know is wrong due to the achievements members have already event.
    A real stumbling block for my site and activity if I'm unable to display what they've already got as well as what they can go after next.

  12. Peter Hudson
    Member
    Posted 1 year ago #

    Got the same here. Created achievement, can award etc, but the shortcode does not display anything.

    Using the standard shortcode with no parameters.

    Am I missing something?

  13. Peter Hudson
    Member
    Posted 1 year ago #

    Okay, so it works if I put in a 'type' parameter. Is that default behavior or is it possible to list all achievement types together?

  14. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Peter, it took a few hours last night, but Martin and I managed to find that some query rewriting was throwing his use off.

    However, yours may be a different case. It looks like the shortcode defaults to "all" if you don't explicitly pass in a post type for the badge you want. However, it doesn't appear to do anything conditionally if that's the value. This would be an issue that we want to fix. That said, for the time being, may be good to pass in a specific one until this is set to actually query for all of them. I'll be filing a bug for it.

  15. Martin
    Member
    Posted 1 year ago #

    Yeah, my http://www.geekandjock.com/badges/new-members-rock page is now working so was a theme conflict.
    The theme Devs are now checking it out for me as well in case there's some coding issue on their side that they can rectify.
    Great support from Michael and the BadgeOS team - great plugin.

  16. Peter Hudson
    Member
    Posted 1 year ago #

    Hi, thanks for your reply.

    I noticed the comments on Github before posting on here, thought I'd have a look see if I could find something similar in my theme (although I couldn't) but maybe looking in the wrong place.

    I can obviously work around the problem (not really a problem as such, because it does work) by passing the parameter but it would be nice if it was possible to query all.

    Keep up the good work.

  17. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    It most definitely is possible. All of the badges created via the plugin are custom post types, so if you're familiar with querying by post type, you could get some code done up to do that. However, that wouldn't be via a built-in method. That said, I did file an issue related to it and hopefully soon the shortcode above will do the "all version" when no specific type is given.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.