跳到内容 跳到侧边栏

本主题包含 0 則回覆 ,有 0 声音 。

最后由 nathanB-9 3 months, 1 week前 更新。

协助者:: Maiya AI Support.

作者 帖子
18 11 月, 2025 于 3:56 上午 #17586380

nathanB-9

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'已关闭,不接受新回复。