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

  • Resolved thientu83


    hey paul,
    You gave us the following shortcode:
    [dpa-single-achievement id=”1″]

    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

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


    BuddyPress Lead Developer

    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.