Looking for some customization help.
I'm wondering if anyone can help me with adding a conditional statement to content-single-achievement.php which does the following:
- Checks to see if the user is logged in.
- Checks to see if the user has unlocked the achievement currently being viewed.
- If the current user has earned the achievement a notice is inserted below the featured image that indicates the achievement has been earned, and/or applies a CSS class to the featured image.
Basically, I'd like users to be able to quickly see if they've earned a particular achievement when viewing its individual page without having to jump into their profile or full achievements listing.
Not so much an issue on sites with few achievements, but a big deal on one like mine that has over 150+.