WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] shortcode and template code (2 posts)

  1. thientu83
    Member
    Posted 1 year ago #

    hey paul,
    You gave us the following shortcode:
    [dpa-achievements-index]
    [dpa-user-achievements-index]
    [dpa-single-achievement id="1"]
    [dpa-redeem-achievement-form]
    [dpa-breadcrumb]
    [dpa-unlock-notice]

    is there any way you can give us the code to use on the template (php code)too...thanks paul

    *by the way, the shortcode: [dpa-user-achievements-index] doesn't seem to be working for me...does anyone else have this problem? thanks all

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

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Take a look in the dpa_replace_the_content function.

    You'll want to use some things like:
    $html = achievements()->shortcodes->display_achievements_index();

    Not all of these shortcodes might work everywhere, so if you've found a page where one doesn't work, you're best to try debug it and see how far it gets (e.g. does any part of the template get added to the page)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags