I set up a custom post type "annex" using Toolset Types. For each annex I would like to use a number that I entered in the permalink field in the editor, e.g. domain.com/annex/1/ or domain.com/annex/345/. Unfortunately, WordPress adds "-2" to my custom numbers. Is it possible to configure the custom post type to avoid these suffixes?
I just checked this on my local test site, and I didn't have any problems using permalinks like site.com/annex/1, site.com/annex/2 etc.
So I suspect you have some other content with numeric urls and WordPress is automatically appending -2 to your annex urls to avoid potential conflicts (or you already have actual annex posts using the same url).
You might want to temporarily disable all plugins except Types to help isolate the source of any problems, and also check if you have any taxonomies using numeric slugs.
thank you for your reply. I tested it on a site without plugins other than Toolset and WPML. No chance. No matter, which number I enter in the permalink field, WP always adds "-2". How did you configure your default permalink options and how did you configure your rewrite options in the toolset CPT settings?
WordPress appends "-2" or other numbering suffixes, it the custom post type is set to "hierarchical". For non-hierarchical post types slugs with numbers only work perfectly.