Custom posts

wordpress

#1

I’m new to Wordpress and DH and I am trying to create custom posts in my child theme. The parent theme is twentyeleven.

I am following the steps in this presentation http://www.slideshare.net/MikeSchinkel/mastering-custom-post-types-wordcamp-atlanta-2012

I get to slide 18 & 19, but rather than getting a new button on my dashboard - the contents of my functions.php file are printed out above the dashboard.

I’ve removed the file but this is the content:
[php]
add action( ‘init’, ‘quack init’ );
function quack init() {
register post type( ‘snippete’, array(
‘public’ => true,
‘label’ => ‘Snippetes’,
) );
}[/php]
I’ve tried some other approaches but get worse errors - could someone please steer me in the right direction?