There is a few Q/A about custom post URL rewrite but I haven’t found any simple answer to what I’m trying to achieve.
My CTP is “event” and I have the current page structure that I want to preserve:
Right now in my theme I use two files single-event.php
and page-agenda.php
. The latter is the archive page, because I want my archive post slug to be siteurl.com/agenda
and not siteurl.com/event
so I’ve created an additional page on my backend.
It’s working like that but I’d like to know if there is a more elegant solution to only rewrite my CPT archive page URL while using the proper archive-event.php
template?
- 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