Wrong Permalink on translated Custom Post Type name
-
Hello,
since I installed your Plugin to translate my theme customizer,
the permalinks of my custom post types are no longer translated.I created some CPT with rewrite slug
register_post_type('engineering', array( 'label' => __('Anlagenbau'), 'public' => true, 'show_ui' => true, // not in use 'menu_icon' => 'dashicons-hammer', 'has_archive' => true, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => _x('engineering', 'Custom Post Type slug', 'dupp'), 'with_front' => true ), 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'revisions', 'comments', 'excerpt' ), 'show_in_rest' => true, ) );Before I installed the Plugin the Post permalinks were:
EN: https://domain.de/en/engineering/Control-System/
DE: https://domain.de/anlagenbau/steuerungstechnik/After I installed the Plugin the Post permalinks are:
EN: https://domain.de/engineering/Control-System/ WRONG!
DE: https://domain.de/engineering/steuerungstechnik/ WRONG!In addition, the option for URL modifications option
“The language is set from the code in the URL” can no longer be saved in the polylang-plugin. After reload of the settings, the option is set to “The langugage is set from content” again.
The topic ‘Wrong Permalink on translated Custom Post Type name’ is closed to new replies.