How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?

(Forgive me, I know this question has been asked extensively but I haven’t found an answer that works for me)

I’m working on a website for a webcomic. I have a custom post type set up called “comic-page” (for individual comic pages) and a taxonomy called “comic-series” (as I plan for the comic to span across multiple series). Right now the URL for a typical comic page looks like:

When I want it to look like:

(Where “lcc” is the slug of the particular series)

I’ve tried several methods which have successfully removed “comic-page” from the URL but none which introduce “lcc” into the URL. My current working code is as follows (I’ve taken out the bits which remove “comic-page”):

Comic Page Post Type:

Series Taxonomy:

My endgoal is to be able to select which series a particular comic page belongs to on the page itself and then have the corresponding slug which I’ve assigned on the WordPress backend appear in the URL. I’m sure there’s a way to achieve what you’d think would be a relatively straightforward thing to do, but I can’t figure it out. Can anyone help?

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