This is the second in a series of live lessons on using WordPress and Thesis as a Content Management System (CMS). One member asked how to create a “Community News” site so that each community had its own “blog” page or “articles” page. In this video we create the the testing site from test data (a download link is below). We create a sub-domain, install WordPress, import the test data, install the Custom Post Type UI plug-in and create a custom post type.
Now we’re going to do… go to Part 2 of this conversation where we actually set up a test site and then how to set up a testing site. And so I am going to create this testing site on Bluehost. Now if you already know how to set up domains and all the rest of that kind of stuff, this is going to be kind of boring. But if you don’t, that’s what I’m going to show you how to do right now. Let’s see, byobtutorial.com, no thanks.
Okay, the first thing we have to do in order to do this is to set up a subdomain. And so as a subdomain, we come down here to Domain Manager and Subdomains and I’m going to create a subdomain called taxonomy. Actually, no I’m not going to call it taxonomy. I’m going to create a subdomain called let’s say, community. I’m going to let the document root to be what it is which is public HTML community and I’m going to create it. Okay, so we’ve created now this subdomain – community.byobtutorial.com. So what we’re going to do is go back to C panel and we’re going to install WordPress. And I want to install the latest version of WordPress. It’s going to be RC 3.1 RC 3 I believe.
Okay and so I’m going to… let’s see, go to install. I’m going to… RC 3 is what I’m going to install and I’m going to install that on community.byobtutorial.com, Community News Case Study. Okay, automatically create a new database with the terms, complete. Okay, it’s installed so we’re just going to run over here to it.
Well again, and now, this is the interesting part. This really only works if you load data. And so I provided you with access to data, to load your site and the way to do that is under Tools, Import, and I want to show you where that is on the website here real quick. Under Forum, let’s see… actually, we should go to my dashboard, find the right post. Live Answer Code, Thesis Template structure, Organizing Posts on Pages. This is where I pasted that code. Okay, right here. This link here at the bottom of this has this zip file that you can download and inside that zip file is the data that you’re going to import. What you would do is you know unzip it… right, its byobsampledataxml. It has 40 some odd posts and a bunch of pages on it that you can download and you just unzip this some place and then you can upload it, okay?
It’s also what we’re going to do here is we’re going to import and we’re going to import from WordPress. Okay, we’ll install the importer. Activate and run importer. Choose Add file. For me, that file is under Downloads and byobsampledataxml. Open that uploads and import. Yeah, we’re going to create the user byobrick. We’re going to match to byobrick and we’re going to import the attachments. That way you get all the images and everything else. So submit that. So this automatically creates all of the blog posts, all of the pages, puts all of the page images and categories and tags and everything else.
So now you can see under Posts, I have all of these different posts. I have 43 posts and under Pages, I have what… 14 pages. So there’s a bunch of data that you can use here.
And then the other thing I want to do is I want to install this custom… I’m going to go to Plugins and I’m going to install the appropriate plugin for the custom post types. I’m going to use a plugin to create this custom post type rather than doing it from scratch. So let’s see, custom post type, search the plugins. And this plugin right here, custom post type UL or UI, I’m sorry.. is the one that I want to use. I’m just going to go ahead and install that. I’m going to activate that plugin. Now you can see, it gives you the opportunity to create custom post types and we are going to create a custom post type called… we’re going to call it community. No, we’re going to call it Edmonds and the label will be Edmonds. Oh, pardon me, this should be a small e there. Let’s see, Edmonds News, let’s call it that. Singular label, we’ll call that Edmonds News. Taxonomy name, we’re not going to do custom taxonomies associated with that.
Let’s go and look at our Advanced Options. Public, true. Show UI, true. Capability as post. The default is going to be the post type name. Query Var is true. We’re going to leave that stuff alone. That’s going to support: title, editor, excerpt, trackbacks, custom fields, comments, revisions, featured image, author, and page attributes. So everything would be in a post. And then we’re going to add categories and post tags to the built in taxonomies associated with it. And then we are going to create the custom post type.
And now, right here, is a custom post type called Edmonds News. So we’ve got our posts, we’ve got pages, and we’ve got Edmonds News. And if we click Edmonds News here, we can add Edmonds News. Probably should have changed it to Add New Edmonds News but nevertheless, you can create a post here then. Now and that’s the end of Part 2 of this. In Part 3, we’re going to figure out how to take regular posts and make them custom posts and say what custom post they are because that was the one flaw in this little conversation. I made this custom sample data based on the assumption I was going to add custom taxonomies which means I didn’t have to muck around with posts. So anyway, I’ll figure that out for the afternoon.