Title: Achievements Shortcode Not Working
Last modified: August 21, 2016

---

# Achievements Shortcode Not Working

 *  Resolved [producist](https://wordpress.org/support/users/producist/)
 * (@producist)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/)
 * Hello,
 * I’m using the latest version of WordPress and BadgeOS. I’m using the Achievements
   shortcode to display the Missions we’ve created, however they aren’t showing 
   on the page. I’ve included some screenshots to give a visual example of what 
   my problem is.
 * Any help will be appreciated!
 * [http://postimg.org/image/thwlff4g7/](http://postimg.org/image/thwlff4g7/)
 * [http://postimg.org/image/4rryhpsgd/](http://postimg.org/image/4rryhpsgd/)
 * [http://postimg.org/image/s9mx0wcjb/](http://postimg.org/image/s9mx0wcjb/)
 * [http://wordpress.org/plugins/badgeos/](http://wordpress.org/plugins/badgeos/)

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

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491833)
 * could you paste me the shortcode exactly as you have it in your post editor?
 *  Thread Starter [producist](https://wordpress.org/support/users/producist/)
 * (@producist)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491871)
 * [badgeos_achievements_list type=missions show_filter=false show_search=false 
   limit=4]
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491897)
 * I’m not sure why, but for some reason, it appears that you’re not getting a value
   assigned to a $post_type_plural variable used within one of the ajax function
   callbacks for post listing.
 * Specifically this line:
    `$achievements .= '<p>' . sprintf( __( 'No %s to display
   at this time.', 'badgeos' ), strtolower( $post_type_plural ) ) . '</p>';` Thus
   why you’re seeing “No to display at this time”. The question is why.
 * How comfortable are you with editing php and whatnot? Also is this on a live 
   site or is it all on a dev install that you can temporarily break?
 *  Thread Starter [producist](https://wordpress.org/support/users/producist/)
 * (@producist)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491898)
 * I’m comfortable editing php with the right guidance. And it’s on a dev install.
   On our staging area in WPEngine.
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 8 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491901)
 * I’m curious what’s getting returned by this function call, in `includes/ajax-
   functions.php` around line 156.
 * If you could provide the returned output from the following, that’d be awesome.
   Put that around line 157 in the ajax-functions.php file, and then refresh the
   page.
 *     ```
       var_dump( get_post_type_object( current( $type ) ) );
       ```
   
 * Hopefully that makes sense.
 *  [waynmeyer](https://wordpress.org/support/users/waynmeyer/)
 * (@waynmeyer)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491912)
 * Hey Producist and Michael
 * sorry to just drop in and ask on your forum, however im having the exact same
   issue. When i use the shortcodes i am only able to see all achievements, however
   as soon as i want to filter by type, im unable to do so and i got no idea why.
   Any fix for this yet? what i have done was created a custom page template with
   do shortcode:
 * `<?php echo do_shortcode('[badgeos_achievements_list type="share" limit=20]');?
   >`
 * Only to find the exact same problem producist has. Any idea?
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 7 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491913)
 * waynmeyer, any js console errors showing up? It could be an ajax issue.
 *  [purplegiraffe18](https://wordpress.org/support/users/purplegiraffe18/)
 * (@purplegiraffe18)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491916)
 * I am experiencing the same thing. I am a beginner and not comfortable with php.
   Any advice is appreciated. I have used several different themes, I uninstalled
   and installed badgeos fresh with the new theme.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491917)
 * **[@purplegiraffe18](https://wordpress.org/support/users/purplegiraffe18/)**:
   If you require assistance then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic instead of tagging onto someone else’s topic.
 * This topic references an old version of WordPress.
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 4 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491918)
 * any changes with this purplegiraffe18?

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

 The topic ‘Achievements Shortcode Not Working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

## Tags

 * [display](https://wordpress.org/support/topic-tag/display/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 10 replies
 * 5 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/achievements-shortcode-not-working/#post-4491918)
 * Status: resolved