Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 1 year, 5 months ago.

Assisted by: Osama Mersal.

Author Posts
September 22, 2023 at 9:25 am #14445389

federicoV-16

Hi,
I have created a Custom Post Type (CPT) using Advanced Custom Field (/products), configured as 'translatable' in the WPML settings.

If, from WordPress (primary language: italian), I add the English translation, the translated page shows a 404 error.
However, if I access the WordPress in english, the CPT is not visible in the WordPress dashboard, and I get the error 'Invalid post type'."

How can i solve this problem?

September 24, 2023 at 9:14 am #14451827

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Please try the following steps:

1- Go to WPML-> Settings-> Post Type Translation section
2- Set the "acf-post-type" post type to "Not Translatable"
3- Check if the post type works correctly in both languages

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

The topic ‘[Closed] Custom post type not visible and 404 error on translated pages’ is closed to new replies.