Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 12 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 17, 2023 at 6:51 pm #14053069

ianC-25

Got a weird one..

I have a Page called Products - url is {parent-page}/products
I have a CPT called products - url is products/{product-permalink}

I can edit all pages fine, but if I hover over the edit link for Product I see the URL correctly as /wp-admin/post.php?post=27&action=edit&lang=en

If I edit the Product page, it will take me to post.php?post=27 which is correct, but it will show me the content of the last product in the product CPT (product's title, permalink, content, etc) except for the page heading will still say Edit Page.

I've tried disabling all other plugins. This behavior stops once I disable WPML. All versions are up to date. I also tried renaming the page from products to something else and resaving permalinks - and still had the same issue.

This happens locally on my computer and also on our server (not public facing) so I can't give a login, but I can send you the site files if you want to spin it up locally.

Any suggestions?

Screen Shot 2023-07-17 at 11.50.49 AM.png
Screen Shot 2023-07-17 at 11.50.27 AM.png
July 18, 2023 at 9:09 am #14056849

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Looks like you are not using WooCommerce and WPML's WooCommerce Multilingual & Multicurrency plugin (https://wpml.org/documentation/related-projects/woocommerce-multilingual/) and it seems to have a custom work.

I also checked about the theme which isn't on our compatibility list (https://wpml.org/theme/?wpv_view_count=119967&wpv-theme-category=0&wpv_post_search=Understrap&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search).

At this point, I'll recommend checking with a default theme like 2021 or 2023 for a starter and see if same issue happens.

Further, I'll need some details on the CPT, which perhaps was registered with ACF, right? Can you check ACFML guide https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/ to see if CPT and custom fields are configured correctly?

Finally, would it be feasible for you to setup this on a sandbox site, if I provide you one?

Please let me know.

Regards.

July 18, 2023 at 2:51 pm #14060307

ianC-25

Thanks. I had an add_shortcode function that was adding the products being shown on the front end, but for some reason the code in it was being ran on the backend as well - which makes literally no sense.. anyways, thanks for the support!

July 19, 2023 at 9:30 am #14064063

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Please feel free to open a new ticket anytime for anything WPML related.