How to restore WP 5.4 behaviour where a numeric string could added to each page URL and parsed as “page” in WP 5.5?

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

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?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com