2

In WP 5.4.x, I was able to add a number to the URL for any page, post, etc. (incl. custom post types), which WP interpreted as the 'page' for a multi-page post, even if that page or post didn't actually have multiple pages. I assume that this was some kind of shortcut for /page/12345/

I could, for instance, open /some-page/12345/, even if that page didn't use a "nextpage" tag. The behaviour also worked for custom post types, e.g. WooCommerce products.

I used this behaviour in a custom plug-in where I needed a numeric ID passed (without having to use custom rewrites). In WP 5.5, WP does a 301 redirect via redirect_canonical instead when a post/page doesn't actually have multiple pages. Is there a way to restore that old behaviour in 5.5?

4
  • 1
    It seems we are having the same problem! wordpress.stackexchange.com/q/372859/193014 Commented Aug 13, 2020 at 6:26
  • @EsaJokinen Yep, that sounds very much like the same issue. Thanks for alerting me to that topic!
    – Marcus W
    Commented Aug 13, 2020 at 6:33
  • @EsaJokinen I lack the points to comment on your post, but feel free to point to this one as well.
    – Marcus W
    Commented Aug 13, 2020 at 6:35
  • See the right column under "Linked": that's a two-way feature! :) Commented Aug 13, 2020 at 6:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.