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

  1. thientu83
    Posted 3 years ago #

    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


  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 3 years 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

  • Achievements for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic