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 How to Build a WordPress Plugin Building WordPress Widgets, and Shortcodes How to Create a WordPress Shortcode

Create a function named my_plugin_shortcode. Include the proper attributes with naming conventions based on what we used

how to solve this

plugin.php
<?php



?>

3 Answers

<?php function my_plugin_shortcode ($atts , $content= null ) { }

?>

Andres Ramirez
Andres Ramirez
18,094 Points
<?php

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

?>

In the video, at about 2:10, he takes us through the basic process for doing just what the Challenge asks for.