jjgrainger / wp-custom-post-type-class

A PHP Class for creating Wordpress Custom Post Types easily
MIT License
416 stars 114 forks source link

Default post type example #29

Closed deadlyhifi closed 9 years ago

deadlyhifi commented 9 years ago

It took me a few minutes to figure out how to add a taxonomy to the default post type so thought it worthy of being in the readme.

Also corrected Wordpress to WordPress, because capital P dangit.

Thanks for making this, very useful.

jjgrainger commented 9 years ago

Nice one!

Though WordPress has a global variable defined as $post, so it would be good to change the variable name in the example you've given to avoid any conflict.

Other than that all looks good, and will see about getting it merged soon

:)

deadlyhifi commented 9 years ago

Oh yes. Good point well made.

jjgrainger commented 9 years ago

Thanks for the PR,

I've not used your work but the changes have been made in the 1.3.2 release.

Thanks :)

deadlyhifi commented 9 years ago

Nice one. Thanks. I use this all the time. It makes it all so easy.