wp-post-by-email icon indicating copy to clipboard operation
wp-post-by-email copied to clipboard

Choosing a default post type

Open richbrat opened this issue 10 years ago • 4 comments

I've written a few lines of code making it possible to choose a default post type in the same way you can choose default category. Adding this would create a small confilct with the default category though – if the default category's taxonomy is not added to the post type you've set as a default then of course the post will not have that category. Question is, do you still want me to commit this code or do you think it's a bit too sloppy?

I guess the correct way of doing this (IMO) would be to overdo it a bit maybe: after you've chosen a default post type all connected taxonomies will display as AJAX loaded separate select boxes with their respective terms in them. I haven't really looked into the whole shortcodes thing in this plugin but I guess that would have to change as well, giving users the possibility to choose taxonomy and terms as well. I might be able to spend some time dealing with this if you think it's a good idea?

richbrat avatar Oct 16 '14 21:10 richbrat

Hi @richbrat! Revisiting this poor neglected plugin.

I like the idea of having a default post format in the settings. I think it makes less sense to support setting a default for every connected taxonomy. We could check via AJAX and disable the default category if the post type in question doesn't have categories -- that would solve the conflict without making things too confusing.

codebykat avatar Mar 08 '15 05:03 codebykat

Yeah, maybe that's better. Don't know if it makes more sense though in a bigger perspective but since WP comes with a default hierarchical taxonomy (Categories), and everyone is used to that, it probably isn't making things too confusing just disabling the default category if it's not connected to the chosen post type. My turn to carve out some time to fix this ...

richbrat avatar Mar 20 '15 21:03 richbrat

@richbrat Heads up! I just refactored a bunch of stuff, you'll want to merge w/upstream.

codebykat avatar Mar 27 '15 03:03 codebykat

Thanks! I'm following this repo like a hawk now, so no probs. Great work!

richbrat avatar Mar 27 '15 08:03 richbrat