intervention icon indicating copy to clipboard operation
intervention copied to clipboard

Post types with "-"

Open cb3rnard opened this issue 2 years ago • 3 comments

Hello ! First of all, this plugin is fantastic and really usefull. I use it on many website. Today I stumbled on a little issue, which prevents me from updating theme custom types : the slugs include the symbol '-', which is overwritten with '_' in Intervention. Example : "portfolio-item" or "show-item" Could it be possible to check for both versions when looking for the existence of a custom type ? Thanks in advance

cb3rnard avatar Jun 23 '22 18:06 cb3rnard

Sure, I will take a look and see if I can check for both!

darrenjacoby avatar Jun 23 '22 18:06 darrenjacoby

Thanks ! I added a few lines in Posttypes.php but it would be even better if it was included :-)

cb3rnard avatar Jun 23 '22 19:06 cb3rnard

Just realized that same goes for taxonomies. Damn themes...

cb3rnard avatar Jun 23 '22 19:06 cb3rnard

@cb3rnard I'm going to recommend moving registering post types and taxonomies away from Intervention. I want focus on removing things from WordPress versus registering, etc. It feels outside scope to keep the plugin lean.

darrenjacoby avatar Mar 21 '23 16:03 darrenjacoby