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


Code Challenge - Shortcode Start and End Buffer

I am on step 3 of 4 of the Code Challenge - How to Create a Wordpress Shortcode. I am not sure that I am doing wrong when starting and ending the buffer. Help please?


function my_plugin_shortcode($atts, $content = null ) {

   // code removed for steps 1-2 of the code challenge

  $content = ob_get_clean();


2 Answers

Mike Bronner
Mike Bronner
16,395 Points

I believe you have "front-end.php" misspelled. :)

Oh, my! I was so focused on starting and ending the buffering that I missed the obvious. Thank you :)

Mike Bronner
Mike Bronner
16,395 Points

Happens to me all the time, too. :)