WPML Not Detecting Custom Post Types #
If WPML is not detecting the custom post types used in Rakmyat Themes (like Portfolio or Services), follow this troubleshooting guide.
Common reasons #
- WPML translation settings not configured for the CPT.
- Custom post type not registered correctly in the theme or a plugin.
- Conflicts with another theme or plugin.
- Cache or permalink settings not refreshed.
1. Check WPML translation settings #
- Go to WPML → Settings → Post Types Translation.
- Find your custom post type (for example
portfolio,services). - Set it to Translatable (choose either translation mode).
- Save changes and check if the post type appears in WPML’s Translation Dashboard.
2. Check WPML configuration file #
- Look for
wpml-config.xmlin your theme or plugin root folder. - Ensure your CPT slugs are added under
<custom-types>as shown above. - If you add or change entries, save the file and refresh WPML (see step 5).
3. Test for theme and plugin conflicts #
- Temporarily switch to a default WordPress theme such as Twenty Twenty‑Four.
- Deactivate all plugins except:
- WPML core and its add‑ons
- The plugin or theme that registers the CPT
- Check again under WPML → Settings → Post Types Translation.
- Reactivate your plugins one by one until the problem reappears to find the conflict.
4. Reset permalinks and clear cache #
- Go to Settings → Permalinks and click Save Changes without editing anything.
- Clear caches:
- Browser cache
- Any caching plugin (WP Rocket, W3 Total Cache, etc.)
- Server or CDN cache if used
- Return to WPML → Settings and verify that the custom post types are now visible.
5. Alternative workarounds #
If WPML still does not detect the CPT:
- Use WPML → Support → Troubleshooting tools to resync post types and taxonomies.
- Recreate the custom post type with a CPT plugin (like Custom Post Type UI) that WPML recognizes easily.
- Contact WPML support with your
wpml-config.xmland CPT registration code so they can check configuration details.