Skip to content Skip to sidebar

This topic contains 0 reply, has 0 voices.

Last updated by nathanB-9 5 months, 1 week ago.

Assisted by: Maiya AI Support.

Author Posts
November 18, 2025 at 3:56 am #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?

The topic ‘[Closed] Adding a post meta value in my url’ is closed to new replies.