title: Custom shortcode not working
body: <p>I tried to make my own shortcode for a first time. I have done all things and there is no syntax error. Can somebody tell me what's the mistake? It's not working.</p>
  
  <p>I have implemented this code into function.php file and Dreamweaver tells me that there is no syntax error.</p>
  
  <pre><code>function booknovelist_button( $atts ) {
      // Attributes   
      extract( shortcode_atts( array( 
          'style' =&gt; 'rfc',
          'link' =&gt; 'www.booknovelist.com'
      ), $atts ) );
  
      $style  = '$atts[style]'; $choice = ' '; $choicehover = ' ';
  
      if ($style == 'rfc') {
          $choice='link to image';
          $choicehover='link to image';
      }; 
  
      if ($style == 'sn') {
          $choice='link to image';
          $choicehover='link to image';
      }
  
      if ($style == 'pon') {
          $choice='link to image';
          $choicehover='link to image';
      }
  
      if ($style == 'amazon') {
          $choice='link to image';
          $choicehover='link to image'; 
      }
  
      echo '&lt;div&gt;&lt;a href="',$link,'"&gt;&lt;img src="',$choice,'" onmouseover="this.src="',$choicehover,'"" onmouseout="this.src="',$choice,'""&gt;&lt;/a&gt;&lt;/div&gt; ' ; } 
  }
  
  add_shortcode ( 'bn_btn', 'booknovelist_button' );
  </code></pre>