Background of the issue:
I am developing a site with a custom post type (CPT) 'credit-card' and have set up URLs for two languages, EN and FR, using WPML. The English URL structure is working as intended with a rewrite rule and a post_type_link hook. I want the URL structure to include a post meta value 'bank-name' before 'card-name'.
Symptoms:
The French version of the URL is not working and redirects to a 404 page. I suspect WPML might be overriding the FR URL.
Questions:
Why is the French URL redirecting to a 404 page despite having a separate rewrite rule?
Is WPML overriding the French URL in some way?
主题'[關閉] Adding a post meta value in my url'已关闭,不接受新回复。