Title: Custom post type
Last modified: June 3, 2020

---

# Custom post type

 *  Resolved [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/)
 * Hi,
 * The plugin does not seem to translate Custom Posts Types.
    At this time, I try
   the free version.
 * Thank you very much for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-post-type-244%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/custom-post-type-244/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-post-type-244/page/2/?output_format=md)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12940370)
 * Hi,
 * I have just checked your website and I see that everything is translated. May
   be you can point out where exactly I should look?
 * You may also contact our live chat and describe the issue more in details: [https://gtranslate.io/#contact](https://gtranslate.io/#contact)
 * We do not have issues with translating custom post types.
 * Thanks! 🙂
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12941025)
 * Hi,
 * Sometimes CPT are translated, sometimes not…
    I give you an example: – I switch
   to English language on the homepage ([https://www.datavalue.fr](https://www.datavalue.fr))-
   > translated – In the Statistical menu, I choose “Basics of Statistics” ([https://www.datavalue.fr/formation-bases-statistique/](https://www.datavalue.fr/formation-bases-statistique/))-
   > translated – I follow the link “Descriptive statistics (exploratory): knowing
   how to describe observations” ([https://www.datavalue.fr/formation-statistique-descriptive-exploratoire](https://www.datavalue.fr/formation-statistique-descriptive-exploratoire))-
   > not translated the first time but can be translated after visiting another 
   page… or not! The problem appears only with CPT, never with posts or pages.
 * Thank you for your assistance.
 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12955572)
 * Hi,
 * Can you disable Autoptimize cache plugin and try again?
 * Thanks! 🙂
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12955597)
 * pro-tip; you can disable Autoptimize on a per-request basis by adding `?ao_noptimize
   =1` to the URL.
 * if the problem is not there at that point, some autoptimize (re-)configuration
   might be needed to fix this. there are troubleshooting tips and info on how to
   exclude in [the AO FAQ](https://wordpress.org/plugins/autoptimize/#faq).
 * hope this helps debugging,
    frank (ao dev)
 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12955626)
 * Hi Frank [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/),
 * Thanks for your input. Unfortunately to replicate the issue we have to follow
   some links and ?ao_noptimize=1 doesn’t help here, because it does not append 
   that parameter in internal links of a page.
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12968296)
 * Hi,
 * You’re right, your plugin seems to be not compatible with autoptimize.
    It will
   be hard if I have to make a choice!
 * Thanks,
 * Cédric
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12969044)
 * Well, taking a step back; try to identify what is breaking things by just disabling
   CSS or JS or HTML or Image optimization (incl. lazyload)? Based on that we can
   see what the next steps are to have the 2 plugin co-exist 😉
 * frank
 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12970720)
 * Thanks Frank for taking care. I was about to suggest the same 🙂
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12973418)
 * Hi Frank,
 * Thanks for your help.
    Disabling JS in autoptimize solves the problem. So I tried
   to use the option “Exclude scripts from Autoptimize” adding entries [https://translate.googleapis.com/*](https://translate.googleapis.com/*)
   and [https://translate.google.com/*](https://translate.google.com/*) Unfortunately,
   without any success …
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12973449)
 * Can you try adding `plugins/gtranslate/` to the comma-separated JS opt. exclusion
   list?
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12973996)
 * The problem still persists…
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12974890)
 * OK, taking a step back:
 * 1. can you try excluding each of the below one by one to see which one fixes 
   things?
    * `wp-content/plugins/` * `wp-content/themes/` * `wp-includes/js`
 * 2. can you try if unticking “aggregate JS” helps?
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12975847)
 * Thanks.
    Unticking “aggegate inline js” solves the problem but breaks a jQuery
   ready function.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12975855)
 * in that case you’ll have to (re-)exclude `js/jquery/jquery.js` from JS optimiztion:-/
 *  Thread Starter [datavalue](https://wordpress.org/support/users/datavalue/)
 * (@datavalue)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/#post-12975915)
 * All works like a charm.
    Thank you very much for your awesome support.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/custom-post-type-244/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/custom-post-type-244/page/2/?output_format=md)

The topic ‘Custom post type’ is closed to new replies.

 * ![](https://ps.w.org/gtranslate/assets/icon-256x256.png?rev=2595917)
 * [Translate Wordpress with GTranslate](https://wordpress.org/plugins/gtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/gtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtranslate/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-244/page/2/#post-12975953)
 * Status: resolved