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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

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

This topic contains 10 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
November 12, 2023 at 3:02 pm #14784145

arge-dIjItalE

Thank you for your support. I automatically translated 90,000 credits. But we have a problem. I created my categories using Custom Post Type. In other words, while the slug value for our products is "products", when we switch to English language, it gives a critical error message because it is "products". How can we translate without breaking Custom Post Type functionality?

November 12, 2023 at 3:14 pm #14784197

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please let me know which custom post type faces this issue and how to reproduce it.

Also, please enable the WP Debug function, try to reproduce the issue, and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.

It would be great if you could paste your debug.log to https://pastebin.com/ and provide me with that link!

Best regards,
Osama

November 12, 2023 at 6:29 pm #14784647

arge-dIjItalE

The debug.log file does not occur in wo-content. Therefore, I cannot send the relevant error code. But I detected this: there is a problem with the images on the page. An error occurs in the images added with acf in the category field and in the image fields on the page. Actually, he copied the images, but it does not work correctly in the interface.

When I re-added the image titled MILK to the home page (hidden link), it got better. But this way I have to reload all the images. Is there any way we can fix this

November 13, 2023 at 8:25 am #14786107

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for your update. I checked the custom taxonomies code in your theme because I couldn't locate them in WPML-> Settings-> Taxonomies Translation section.

I think this is causing the issue on the translated pages because they don't seem registered correctly.

When changing the code to be the following:

register_taxonomy('urunler_category', ['urunler'], [
		'label' => __('Category', 'urunler'),
		'hierarchical' => true,
		'rewrite' => ['slug' => 'urunler_category'],
		'show_admin_column' => true,
		'show_in_rest' => true,
		'labels' => [
			'singular_name' => __('Category', 'urunler'),
			'all_items' => __('Categories', 'urunler'),
			'edit_item' => __('Edit Category', 'urunler'),
			'view_item' => __('View Category', 'urunler'),
			'update_item' => __('Update Category', 'urunler'),
			'add_new_item' => __('Add New Category', 'urunler'),
			'new_item_name' => __('New Category Name', 'urunler'),
			'search_items' => __('Search Category', 'urunler'),
			'parent_item' => __('Parent Category', 'urunler'),
			'parent_item_colon' => __('Parent Category:', 'urunler'),
			'not_found' => __('No Category found', 'urunler'),
		]
	]);
	register_taxonomy_for_object_type('category','urunler');
    register_taxonomy_for_object_type('urunler category','urunler');

The custom taxonomy appears correctly in WPML-> Settings-> Taxonomies Translation section.

Best regards,
Osama

November 13, 2023 at 6:07 pm #14791745

arge-dIjItalE

I edited it as you said, but unfortunately it did not fix my problem. There is a problem with the translation of the images. In this context, I would like you to review and support me regarding my problem.

November 13, 2023 at 6:26 pm #14791801

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I'll consult our 2nd tier support team regarding the issue and update you as soon as I get their reply.

Best regards,
Osama

November 14, 2023 at 10:39 am #14796543

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

The English home page seems to work correctly. Please let me know if you changed anything. (hidden link)

Best regards,

November 14, 2023 at 6:25 pm #14801537

arge-dIjItalE

Hello, I purchased 40,000 additional credits for English pages. I only translated 10,000 words of content and I ran out of all 40,000 credits. I do not accept such a mistake. It is impossible to finish 40,000 credits even if I only turn a few pages. I translate it by checking how many credit words it will translate. It is impossible for it to end. I want approximately 30,000 of my credits to be reloaded.

November 15, 2023 at 7:37 am #14804873

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please go to WPML-> Translation Management-> Tools tab, scroll down to Automatic translation usage reports and check this month's report to see how many credits you used.

Also, please note that you use the DeepL translation engine, which uses 2 credits per word.

If you find that the report doesn't match the credits you had, please open a new ticket for this issue.

In our forum, we try to keep one issue per ticket. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Best regards,
Osama

November 15, 2023 at 12:08 pm #14807885
arge-dIjItalE

Hello,

Since I couldn't find a way to create a new form, I continue writing here. You can separate this topic from this form if you wish.

I didn't know that 2 credits were used for each translation with DeepL. I had purchased credits based on the number of translations I needed. I would like to cancel the translations of the last 40,000 credits I bought and have them refunded to my account. Subsequently, I want to restart the translation process with the settings adjusted to use 1 credit per word.

New threads created by Osama Mersal and linked to this one are listed below:

https://wpml.org/forums/topic/translation-credits-issue/

November 15, 2023 at 12:16 pm #14808041

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I've split the credits issue to another ticket. (https://wpml.org/forums/topic/translation-credits-issue/)

Best regards,
Osama

The topic ‘[Closed] Custom Post Type categories’ is closed to new replies.