• Resolved sametsezer

    (@sametsezer)


    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://ww.wp.xz.cn/plugins/badgeos/

Viewing 1 replies (of 1 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.