WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress Quest

WordPress Quest allows you to add 'Quests' to your site, granting users points and named achievements for certain interactions

Can I display user Quest details not matching the default?

Yes! <?php wordpress_quest_display() ?> accepts an array of options which overrule the default settings in the dashboard.

The options are as follows:

    `<?php 
    $options = array(
    'user_level' => true //Whether to display user's current level
    'xp' => true, //Whether to display user's current XP
    'distance' => true, //Whether to display distance (in XP) to users next level
    'quest' => true, //Whether to show a list of all completed quests for this user
    'recent-quest' => true, //Whether to show a list of recently completed quests for this user
    'last-quest' => true //Whether to show the most recently completed quest for this user
    ); ?>`

Can I display the level/xp/distance/quests of someone who is not the current user?

Yes, <?php wordpress_quest_display(); ?> accepts a second parameter - ID of desired user. If none is given it will automatically try to determine the current user ID and use that.

There is also a third option - A fallback for what you want to display if there is no currently logged in user and no ID has been passed to the function.

The fallback parameter defaults to nothing.

So, in full, your call to the function might look like: <?php wordpress_quest_display($options, $userID, 'No user currently logged in.'); ?>

Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 2013-11-30
Downloads: 579

Ratings

2 stars
2.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
100,1,1