My wordpress site has the following URL structure defined in WP Admin > Permalinks
Custom Structure : /articles/%postname%/
For all my default posts.
I also have the following rule defined within my functions.php
file:
I pass with_front = false
so that these specific links do not contain articles/
in the slug.
Using add_permastruct()
correctly now works for the urls that contain a price and material i.e
But now any other post url is resulting in a 404 error. i.e
It seems the add_permastruct()
function is overwriting any url with 2 parts to the slug.
No matter what they are.
- 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