In this session, we finish discussing the development of our Custom Post Type and show how to create custom post type content using the Custom Post Type UI Plugin.
Rick: Good evening, Reese
Reese: Good evening sir. How are you?
Rick: I’m doing great. How are you?
Reese: Doing well.
Rick: Okay, well you confused me a little bit here with your email, I got to admit.
Reese: Sorry abou that.
Rick: I thought we had… I knew what I was getting from you. But having said that, we’ll just take a crack at it and see what we get. And so I did create this using custom post type for custom-post.byobtutorial.com for us to test tis on.
Rick: And so the first thing to do here is… well actually, you didn’t give me a code name in the email. And it looked like your short name was longer than your long name. Andn so I wasn’t really sure exactly wha you want to do with those things. But you know, it occurs to me that code name is the way… well actually, let’s just look at some of your examples.
Rick: And then we can decide from there what’s the right… if we… let’s see, where are you down here? Reese.
Reese: I sent you another one about 5 minutes before the webinar started which may be kind of summarized… yeah, there yo go.
Rick: Okay so here’s your short name. In this case, although down here you had a short name with all kinds of stuff in it.
Reese: Oh my… well… and that’s just… and the reason for that is because it’s a company. And all you’re really doing was a short name is you’re dropping out any extra parties. But if it’s a company you know, you just can’t call it Barnes. You have to call it Barnes & Noble.
Reese: So you’re just kind of stuck. So that’s the reason on that. And usually, what you do is you keep the first person’s name ss if you and I get in a lawsuit, it’s Anderson v Morell, we just go with Anderson. But what happens, it’s just so on the first case, Eisner, he happened to be the government official. Well, they’re suing everybody on his behalf. So if you were to look up Eisner, you’d find tens, if not hundreds of cases. So then what you do is you just go with the name so that’s why it’s called the McComber case instead of the Eisner. That’s why it’s called the Welch case instead of Helvering. Helvering happened to be the commissioner. And there’s like 3 or 4 of them and tax nerds know who they are. And the code name was just the year that the opinion was decided and then they use just the short name. But if it’s a company name then I do have to… I’m the only one who’s going to see the code name. If I drop out the & Noble and just use Barnes, nobody’s going to know.
Rick: Right. Okay so I’m going to show you something here on my site which I hope everybody knows is running a little bit faster today than it used to. I just had it tuned up. If we come over and look at my Live Answers which is a custom post type, I have a custom taxonomy called video availability, one called difficulty, one called lesson subjects, and one called answer topics. And I am showing these inside of this admin screen so I can tell when you know, there’s work to do. I can see that because I have staff person who posts this stuff but then somebody else comes back and does all the classification of it. And so I can see these things all side by side. Well, I am thinking that something like that would be better for you for code name so that you could scan through the code name and see the code name in a row next to everything else. Is that true or is that not true?
Rick: Is it useful to see the codename in your admin screen or not?
Reese: If it does, it’s fine. If it doesn’t, it’s not that big a deal. I mean, after you’ve stared at these cases about a hundred times, I can tell you, you know, the Cohan case was a 1930. The Welch case is a 1933 case. McKenna is a 1925 just from working at it. It’s convenient but it’s not a deal breaker. And if I…
Rick: Well, it’s not a deal breaker question. The question really is… the question is what kind of content is the code name going to be? I have the code name right here as post meta. But if you want to see that in a column, it actually shouldn’t be post meta. It should be a custom taxonomy.
Reese: It’s not that… it’s really not that handy because you know, when I’m working on a case and I’m figuring out how to code it and all that kind of jazz, part of what I’m trying to do, Rick, is I’m trying to start with the oldest cases and go forward. And so on the Lady Luck Diary website, I was just trying to hurry up and get you know, 30-40 cases up there fast. So I found this one, got that one. And what I was trying to… I mean, I really wasn’t putting junk up there. This case dealt with these issues so we’ll put it on there. This case dealt with this issue so we’ll put it on there.
Rick: Right. You were getting what seems like the most important stuff as quickly as possible and getting around to the comprehensive thing later.
Reese: And so what I’ve decided to do on the Gambling Tax Institute is start with the oldest cases and then work my way forward. And the reason for that is I don’t want to do a 1991 case and not have some of the cases cited and then have to go back and re-edit the case. So if I start with…
Rick: Oh sure, absolutely.
Reese: And I don’t want to have to go back and touch the case 3 or 4 or 5 times. Once I get it in, I want it done. I don’t want to have to mess with it anymore. And that just you know, reduces errors and actually… the big delete button, stuff like that. So I pretty much know as I’m oign along that you know, if I’m working on a 1930 case, there’s not that many other cases that are out there because we didn’t get our tax code until you know, 1913. And the particular code section I’m worried about did come along until 1939. So you know, what are the odds that there is a court case on that issue. It’s not very likely. So it’s nice but it’s you know, it’s me. I can go to my website and I can type in McKenna and I can you know… and it comes up and it says 1925 and so then I have my answer.
Rick: Okay we’ll keep it as post meta then. So what we’re doing then is we’re creating a custom post type called court case and then we are creating some custom post meta.
Reese: Now let me ask you about that. You see, I had used and I missed this one on my posts. When you look at all of the options below your post stuff you know, you have your post content. And then you know, Thesis lets you go in and do all of your SEO Optimization stuff on your… below the post. I was trying not to have that go away. Your SEO details, meta description…
Rick: It won’t go away.
Rick: We’re going to make sure it’s added to it. That’ll be part of it.
Reese: Because I had used… I think I mentioned to you in the post, I’d use a plugin. And when I use the plugin, all that went away.
Rick: Yeah and we’ll use a plugin and it won’t go away at first but then we’ll use a little piece of code to bring it back.
Rick: Because it’s not… it’s a very short piece of code required to return this stuff back to… I mean, this is a…
Reese: And part of that is because the court cases are really are a big chunk of this because is someone gets audited, the IRS hands them a report and the IRS will frequently cite 5 or 6 cases. First thing they’re going to do is they’re going to type in the names of those cases on Google and see what they can find about those court cases. So that’s why I want to be able to have all that SEO.
Rick: Well, you can see here I’ve got SEO details and additional style in my Live Answers. So it’s… and this is a custom post type. It’s not a post. It’s a Live Answer.
Reese: Right. And then the other thing too is when I had used the plugin, it really messed up the order on the dashboard. I couldn’t figure out… see how you have dashboard at the very top that has Vault Press and post and webinars? It would just randomly put them in there and I never could figure out how to you know, I tried doing it alpha. I tried doing a couple of things. It will just randomly…
Rick: Let’s just see what happens here with this. I mean, the reason why you would do it as a custom post type and not as a post is because if you’re going to have articles and you want a blog page that displays them, you don’t want it cluttered up with you know, all the other potential stuff.
Rick: So I mean, that’s the rationale for segregating that content type out and making it separate.
Reese: Right. And I’ve got other types of content. For example, the IRS has revenue procedures. They also have revenue rulings. They have chief counsel advice memorandum and those need to be out of the blog flow of life.
Rick: Right. Okay well, let’s just keep proceeding with it this way and then if it doesn’t look like it’s the way we want to keep going with it then we’ll change. But let’s see, here we are, custom post. So we’re going to go to plugins and add new. You used a different plugin than I’m recommending too. I’m using Custom Post Type UI.
Reese: I’m not married to… if it’s compatible, works and doesn’t crash my system, I’m a happy camper.
Rick: I think you’ll find that it works fine. So Custom Post Type UI and we’re going to use Custom Post Type UI to create the custom post type. And then we’re going to use Verve Meta Boxes to create the meta, the custom post meta and then we’ll input the data.
So under custom post types, yeah okay, I guess we just add new. The post type name is like the slug so it’s going to be court cases and the label will be court cases and the singular label will be court case. Don’t worry about the description but we are going to do advanced label options and let’s see, court cases, add new, court case. We’ll say add new court case, edit court case, new court case, view court case, same thing. Search court cases, no court case found. We can leave not found in trash and then parent court case. Okay so case so that’s got those things and we look at our advanced options.
Reese: What was that? Parent is what now? Oh, parent court case.
Rick: Yeah, parent court case. And then we wanted public UI to be true that means you want it queriable and we want to show the UI. We’re definitely going to show an archive of it. It’s capability to type is going to be post. It’s hierarchical. It’s going to be false. We’re going to use our rewrite rule as true but we’re going to… court case is just fine. We don’t need to add any other… or court cases is what the rewrite slug will be. We definitely want to be able to do a query variable and we want to… let’s see, do we want to show these in the menu? You don’t really care, do you? You don’t really need a menu that has…
Reese: No, it’s going to be 300 of them…
Rick: So we won’t show them in the menu then. And then we’re going to have… in terms of supports, we don’t really care about author. No featured image.
Reese: Well, I do care about author and the reason for that, for instance, on the Cohan case, Cohan v Commissioner, that was written by Judge (16.18) and then you have some that were Judge Cardoza and those guys are just famous.
Rick: Well, the problem is that this is WordPress author so you’re creating them as WordPress users?
Reese: I’m creating Judge Cardoza as an author and I’m creating Judge (16.38) as an author.
Perfect, then. Okay so we’ll leave it like that. You’re not going to use comments on these, are you?
Reese: Not initially but I may later. And the reason for that is…
Rick: Well, we can come back and add comments. I mean, we can add this back in if we want.
Reese: You know, I could see in the future that somebody could come back and say, “You know, 70 years proved Judge so and so right.”
Rick: Okay, I’ll leave comments on then. But you don’t really care about trackbacks so I’m going to take them out. We need the custom fields.
Reese: Now, I’ve used trackbacks on Lady Luck Diary and what happens, if I understand the way trackbacks work, if a case sites Eisner v McComber, I think that shows up as a trackback, doesn’t it?
Rick: No. A trackback shows up as a comment on the particular page when somebody links to that page. That’s what a trackback is.
Reese: Yeah, when the court case… when I have these links because I think Lady Luck tells me I’ve got some trackbacks. So when I click on the trackback.. well here, let me…
Rick: When you click on the trackback, it should take you the site that is linking to you.
Reese: I can tell you real quick.
Rick: And this isn’t really the most crucial decision in the world either, right?
Reese: No. Yeah, see if I go to Lady Luck Diary and if I type in Cohan v Commissioner, it says I’ve got 14 trackbacks and those are all the cases that cite…and there are pages, 14 pages on my website.
Rick: Oh well, what it’s doing there is it’s tracking your own trackbacks. It’s tracking the fact that you have links to yourself.
Rick: Which is not useful. You already know that you linked here so… unless you want a list on the bottom of each of these court cases where that court case is linked to elsewhere on your site then trackbacks are perfect.
Reese: Yes because you know, you may want to say, “Here’s the Cohan case. I wonder how these guys are doing. I wonder if this is working or not.” And so that’s… I mean we’re talking about starry (19.52)
Rick: I don’t know. It’s really cloudy here so I can’t see any stars. Did I lose you or did you fall on the floor laughing? Okay.
Reese: Just a little chuckle.
Reese: I need the soundtrack, right?
Rick: Yeah, exactly.
Reese: A little drum.
Rick: Okay, I’m just going to… I’m just going to create this custom post type now. Okay and we’ve created the custom post type and that’s all we have to do here. We just have created this custom post type. It’s now been created and we don’t have to change anything.
Reese: Oh real quick. What else did you have below support? I was making notes of this. I was writing this down. On the previous screen?
Rick: It supports title, editor, except. The only thing it didn’t support was featured image.
Reese: You had on the hierarchical fault, you had rewrite true, query variable was true and support. Was there anything after that?
Rick: You know, I’ll give you a login for this so that you can just login to the backside and see what we did.
Reese: Okay, great. Thank you.