Associate Custom Post Types
-
I am building a website for a magazine and they want me to develop a plug-in that will manage their advertisers. We’ve looked at some of the existing plug-ins, but nothing fits exactly right.
They want to be able to create an advertiser in the admin section, then be able to add ads from their magazine to that advertiser so they can be displayed on the front end. When a visitor to the website clicks on the image of the ad, they will be taken to the advertiser’s website. My client also wants to track how many clicks each of their advertisers get.
I was thinking of creating a custom post type for the advertisers and another custom post type for the ads. Then when creating the ads, I could have a field to select the advertiser from the list of advertisers from the advertisers post type.
I think this will work, but it would be much more elegant to have it all contained in one menu item in the admin section. So my question is, is there a way to associate custom post types, so that I could have a single post-type in the admin menu then have related post-types within that post-type for the ads.
I’m not sure if my question is completely clear. Hopefully it is. If not, please ask and I can try to clear up any questions.
Thanks for any help. I really appreciate it.
BrianP.S. I’ll admit that I’ve only looked at a few plug-ins, so if there’s a good plug-in that’s already available, I’ll definitely consider that.
The topic ‘Associate Custom Post Types’ is closed to new replies.