No, but that is an extremely good idea.
The best I can suggest right now, is to change ‘post’ to ‘any’ where the $args variable is set:
http://plugins.svn.ww.wp.xz.cn/unique-headers/tags/1.2/index.php
Be aware though, that the next time you update the plugin that change would be wiped.
I’ve left a note for myself to add a filter onto that and to write a blog post explaining how to use the filter to add custom post-type support into it. I’m quite busy at the moment though, so I probably won’t get to this task until October some time sorry.
Thread Starter
SiGa
(@siga)
Thanks much for the hint – I went and tried ‘any’ and I also tested
'post_type' => array( 'post', 'page', 'row' ),
(would that be the right way to address the custom post type?) where row is my custom post type, but both didn´t return the option to choose the custom header when creating/editing the custom post type unfortunately.
Glad to hear you might implement this at some point though – thanks for considering and the fast feedback!
Arghh, that’s what happens when I don’t bother testing things.
Try adding this to the end of that file:
$args['post_type'] = 'row';
new kdMultipleFeaturedImages( $args );
I still don’t have time to test that, but it “should” work. If it doesn’t, let me know and I’ll take a closer look for you.
When the next version comes out, make sure you go check my blog (http://geek.ryanhellyer.net/) before upgrading, as I’ll post information about how to add support for more custom post-types there.
BTW, your use of an array to process all the post-types would normally make sense within WordPress, but because of the way the media uploader module I’m using operates, that isn’t going to work unfortunately.
Thread Starter
SiGa
(@siga)
Yay, that worked! 🙂
Thank you so much for taking the time to help (and to explain), very much appreciated!
Best Regards from Austria, I´ll keep an eye on your blog and your plugin for sure!
Austria seems like a nice place. I need to come visit it some time.
Thread Starter
SiGa
(@siga)
That´s definately a good idea – but be sure to pick another summer (because you need to do some hiking in Austria), this one is awkward. LOL