 We have to start by building our plug-in so I'm just going to go into our local folder into the WP content and the plug-ins and I'm going to start a new folder which I'll just call it box for now, box-gallery for now. That would be the name of our plug-in and I'm actually going to drop this in our editor so that we can kick off with the project. So I'll just drop this in here, create a new file which I'll call the same thing.php and then our next thing is open the php file and then start adding the requirements that WordPress had. So we need to have the plug-in name which we shall call it box-gallery for now. We'll have the plug-in URI which is our going to just put in my blog URI. We need a description for the plug-in so light box, custom WordPress, custom classic press. Stroke WordPress plug-in. And then the next thing that we'll do is we'll add the author who is me and then our author URI which I'll just copy from here and then just duplicate and then I'll add a version number to this and I'll just go for 0.01 and save that. Once we have that ready, of course we come here and reload our plug-ins page and we have everything that we need, our title, we're ready to activate. We have a version, we have the author and the plug-in URI. So when we activate this everything will be okay and we are ready to go. So first things first is we're going to add our custom post type right here of galleries and what I'm going to do is I'm just going to show you my process. Most of the times I don't have to do the same thing. So what we're going to do is we're going to Google custom post types and the other thing that I want to look at is the WordPress post types that I'm going to share something with you. So we'll just look at this. So by default WordPress has a number of post types. We have the posts that we usually see, we have the pages, we have attachments, we have revisions, we have navigation menus, we have custom CSS and change sets. So these by default the post types that WordPress comes with and we can see them in these particular locations like the attachments, usually the media, we have the posts, we have the pages and of course we can make our own by creating what we call custom post types. So what I'm going to do is actually register a new custom post type for our website which is galleries and that's the one that we are going to use to actually make it possible to start our galleries. So you can see the particular parameters that are needed like the capabilities, what is supported and actually down right here at the end of the page you have some custom code that can be used as a sample and you can register this to make your custom post types. So I'm just going to paste what I've copied there and then I'm just going to save this and if I reload our plugin right here we're going to realize that we have something called books right here but we don't need books for now so I'm going to change wherever I see books I'm just going to change that and I'm going to call it galleries and then wherever we have the book I'm going to change that to gallery. So we have that ready so if we save this and go back and reload we have our galleries and we can always add a new gallery and we'll recognize that now we have if we look at the small URL down here when we hover over the ad new we see that the post type that we do have is called gallery so we are ready to actually go so...