Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Cath Ellis
Cath Ellis
11,985 Points

Show all badges in the Treehouse badges plugin

Hi, I am wanting to display all my badges on my wordpress page. Each time I get a new badge I am having to manually change this code...

[wptreehouse_badges num_badges="91" tooltip="on"]

Please can someone advise what code I can use to display all by default?

Cheers, Cath

7 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

At the moment, I'm not sure this is a feature, but I will add it in with the next update.

If you watch our How to Build a Plugin Course though you'd really easily be able to add that feature yourself ;)

Timothy Rimnac
Timothy Rimnac
26,219 Points

Though I haven't tested with this. Typically in Wordpress when setting the limit for the number of posts pulled through, setting the number to -1 will cause it to always pull all.

Again this hasn't been tested with this plugin but it's worth a shot.

Cath Ellis
Cath Ellis
11,985 Points

Thanks Guys, will have a play around. Cheers

John Dugan
PLUS
John Dugan
Courses Plus Student 13,165 Points

Hey Zac,

+1 for the all badges option... have yet to watch the course :-/

Cath Ellis
Cath Ellis
11,985 Points

Hi John, unfortunately that does not work on this plugin. I have tried +1 and -1 with no success.

Regards, Cath

John Dugan
PLUS
John Dugan
Courses Plus Student 13,165 Points

Huh? I think you misunderstand me. I meant +1 as in I too would like to see an option to add all badges, not +1 as a parameter.

Cath Ellis
Cath Ellis
11,985 Points

Sorry about that John, yes I did misunderstand