CPT and Pages rewrite slug conflict giving me a 404

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

I’m currently getting a 404 on my site for a page using a CPT archive as the base of its URL.

I previously used this solution to solve the issue – custom taxonomy and pages rewrite slug conflict gives 404 which as been working perfectly.

My issue is now I’ve had a second request for a url which I can’t get to work.

My original code is:

However, if I reuse this code even when changing the filter name etc and the variables I get a website error. I’ve tried several different versions so far and happy to include them if that’d help but didn’t want to make the post too long.

TLDR: I currently have one rewritten URL, however now a second is needed I can’t get the same solution I previously used to work.

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