Viewing 10 replies - 1 through 10 (of 10 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    could you paste me the shortcode exactly as you have it in your post editor?

    Thread Starter producist

    (@producist)

    [badgeos_achievements_list type=missions show_filter=false show_search=false limit=4]

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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

    (@producist)

    I’m comfortable editing php with the right guidance. And it’s on a dev install. On our staging area in WPEngine.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    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

    (@tw2113)

    The BenchPresser

    waynmeyer, any js console errors showing up? It could be an ajax issue.

    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.

    @purplegiraffe18: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    This topic references an old version of WordPress.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.