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 WordPress Widgets Code Challenges

Erin Dawson
Erin Dawson
2,473 Points

Build a Wordpress Plugin Challenge 2 of 6

I'm on the second step this code challenge, and everything appears to look like it's written properly. But when I try to run the code, I get an 'Oops! Task One isn't working'. I just need a fresh set of eyes...can anyone help me with what I might be missing? To my knowledge, this matches up exactly with what is written in the video preceding it.

plugin.php
<?php

    class My_Plugin_Widget extends WP_Widget {

        function my_plugin_widget() {
            parent::__construct( false, 'My Plugin Widget' );
        }

        function widget($args, $instance){

    }

    function update($new_instance, $old_instance){};

    function form($instance){
      $title = esc_attr($instance['title']);

      require('inc/widget-fields.php');
    }




    }



?>