In this session, we show how to create custom post meta using the Verve Meta Boxes Plugin.
Rick: So then the next thing to do then is… oh well, we’ve created it. Where is our… it should be right here now. We should actually have… I must have done something wrong because it doesn’t show up here as court cases unless I’m blind and it should. Okay, maybe I am blind. Parent, public, true… show UI, true… has archive, true… hierarchical… see, show UI is the thing there that makes it show up over here on the admin.
Reese: You said has archive? Do we want to say true or false?
Rick: We want to say true because you want to be able to display an archive of all the court cases.
Rick: So, keep bullet type, hierarchical, rewrite, custom rewrite slug, query bar… oh, menu position. Oh, that’s what it was. I’m sorry. I’m totally messing this up. That’s not what this is. Showing menu is not what I said it was. This showing menu doesn’t show in the admin menu over here and that’s what that is. So now, court cases is here.
Reese: Great. And when you said menu… you had menu position. Does that let me move it up and down?
Rick: It does, yeah.
Rick: So the next thing we then want to do though is we want to add some custom meta boxes to this. And so we’re going to add another new plugin and this time, we’re going to add Verve Meta Boxes. Search the plugins and install it, activate it and then tools… or is it settings? It’s tools. Verve Meta Boxes, I’m going to create a new meta box and we’re going to say court case details or references… court case references. And it’s only going to apply to court cases so we’ll create the box. And so if we looked at… what’s that?
Reese: So then you do the shortcode, the…
Rick: Yeah so we’re going to do full reference and then I guess we’ll do code name, full reference and whether or not to link. So this is a text, the field name is code name and the field description is Reese’s reference. Okay, add that field. Then the next one is going to be the… what is it, full reference? Yeah. And it’s not going to be a text field. It’s going to be a text area and the field description is going to be full case reference. We’re going to add that field and then the next one is going to be a check box and the field name is going to be a link.
Reese: I had thought about this since we’ve talked last, there are some cases that I want like Cohan, like Welch, like (05.10), like Winkler. But there are some cases that I don’t but they’re still important. Say like Eisner v McComber, for instance. And the reason why that one’s important is because that case says that it’s constitutional for Congress to taxes. The 16th Amendment says so. So do we want to have a link to a local link and an internal link, an external link and then no link at all?
Rick: So what I’m going to do here is I’m going to have… we’re going to have a checkbox that says link yes/no and if the link is yes then it’s going to link to the internal case. If the link is no then what it’s going to do is ask the question whether or not there’s actually an external link. And if there’s an external link then link to it. Okay, so instead of link yes/no, let’s say link to internal page.
Reese: Sorry for being your problem child.
Rick: No, absolutely. I think it’s a very good point. Link to internal page, add the field and then the next one is going to be a text box. Actually, do I have a URL choice here? No, I don’t. So the next one is going to be a checkbox and it’s going to be external link, link to external resource. Add the field.
Okay so we have 4 kinds of post meta now. We’ve got code name, full reference, link to internal page and external link. And we’re going to update this box and then we’re going to come over and take a look at it, court cases.