Skip Navigation

[Resolved] Numbers/digits for permalink slug

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Matthias 7 months, 2 weeks ago.

Author
Posts
#2690898

Hi!

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?

Best regards
Matthias

#2690924

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Matthias

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.

#2690943

Hi Nigel,

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?

Best regards
Matthias

#2691078

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.