Support » Plugin: Achievements for WordPress » shortcode and template code

  • Resolved thientu83

    (@thientu83)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Gibbs

    (@djpaul)

    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)

Viewing 1 replies (of 1 total)
  • The topic ‘shortcode and template code’ is closed to new replies.