How to Add Custom Fields to a Custom Post Type?
Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type.
Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type.
I have a custom post type (speaker) and I would like to load the list of speakers sorted by last name. I can’t seem to figure it out. I tried the code from this post: https://stackoverflow.com/questions/16416217/wordpress-orderby-last-word-in-title
(note: this question was originally about Custom Fields, but @MikeSchinkel had a better solution involving Custom Post Types)
I have a custom WP_Query with the following meta_query:
I need to create a custom post meta box(es) for my custom post type “Slideshow” (this post type is already created). Each metabox will hold the content in each slide slide and save it to corresponding custom fields. Each metabox should contain the following fields:
I want to order my categories like I order my pages. I’ve added an extra field called Order to my taxonomy, but how do I order my terms by this value?
When I’m creating a new post, just after clicking “Add New”, when the post editor shows, instead of having to use the dropdown and choose a custom field to use, I’d like to have some default custom field inputs already openend.
i am trying to learn and create some deeper things with WordPress. My goal is to create a code/script/plugin that will allow me to post from the frontend.
I have over 1000 posts. Each post has a custom field XYZ. I’m looking for a function that I can run once that will assign a value of 1 to each of the posts’ custom field XYZ. I’ve had a look at this but i’m not getting how to put it into a one-time-run function?
I’ve got these custom post types (CPT) and meta boxes: