Title: Function usage in theme
Last modified: August 21, 2016

---

# Function usage in theme

 *  Resolved [sametsezer](https://wordpress.org/support/users/sametsezer/)
 * (@sametsezer)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/function-usage-in-theme/)
 * Hi,
 * Sorry for this easy question, but i just start using WordPress. So i dont know
   usage of all this function in my theme.
 * For example;
 * I create an Achievement Types, called “Badges”. Then i create an archive-badges.
   php and a single-badges.php in my theme folder.
 * I wanna use some function in this files. For example, i try to use a simple function
   to show post thumbnail;
 * _badgeos\_get\_achievement\_post\_thumbnail( $post\_id, $image\_size, $css\_class)_
 * But when i try to use this function, nothing happens.
 * So, could anyone tell me, how i can use these function in my theme (single-badges.
   php or archive-badges.php)
 * [http://wordpress.org/plugins/badgeos/](http://wordpress.org/plugins/badgeos/)

Viewing 1 replies (of 1 total)

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 7 months ago](https://wordpress.org/support/topic/function-usage-in-theme/#post-4280490)
 * are you passing in the proper ID for the achievement? It’s not intuitive at the
   moment to grab the ID, as one has to look at the URL when editing the achievement
   and grab the numeral ID out of it. If you don’t provide one, then it falls back
   to the first parent achievement type ID.
 * Other possible issues: are you echoing the function? example:
 *     ```
       echo badgeos_get_achievement_post_thumbnail( $ID );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Function usage in theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/function-usage-in-theme/#post-4280490)
 * Status: resolved