For example I’d like to create a post type called “Featured” and when you create this, it offers a drop down menu (or search field) that allows you to select a single post you want featured. You hit published and it’s done.
However, I’m not sure if I’m thinking this through effectively enough or how I might produce this.
Well, I understand how to make post types but my question may more closely relate to specifically to PHP or advanced Wordpress techniques. Or just general guidance. Within Wordpress’ post type functionality there’s no immediate option to search through a list of posts – of a different type – to set up a relation between the two. Etc.
my question may more closely relate to specifically to PHP or advanced Wordpress techniques
I am not sure what you mean by this. Php is what wp runs off of. Most of the things wp does is hidden behind predefined functions. If you know HTML, CSS, PHP and MySQL you don’t really need to use the predefined functions only.
Within Wordpress’ post type functionality there’s no immediate option to search through a list of posts – of a different type – to set up a relation between the two. Etc.
Apologies. I read that link just now more thoroughly. I’m sure I’m not being too clear but that’s unfortunately because I’m not sure how to communicate what I’m trying to do. I’m also not sure if I’m approaching this incorrectly.
Within the admin screen I want a user to be able to select only one post of any type, that will be featured on the homepage – such as with a custom field toggle button. I’m worried that a casual user would accidently select multiple posts and would be confused as to why one isn’t on the homepage and another is. That’s why I’m curious about setting up a way that only one post can be selected as “featured”. I’m not sure how to do this.
One idea I have right now is to create a featured post type. Within the admin of this featured post type, I envision a search field or drop down menu where you can select the specific post you want as featured. So basically the featured post type has a custom field that connects to another post that will actually be featured. I’m not sure how to do this though and i’m not confident that that would be the best approach.