[Plugin: Simple Custom Post Type Archives] WPML single template fix
-
If WPML and Simple custom post type archives enabled, we having redirection bug:
Single custom post type template in second language redirecting to type-yourtype.php instead of single-yourtype.php file.
For fix it in simple-custom-post-type-archives.php plugin file change:function scpta_template_redirect() { if ( is_custom_post_type_archive() ) :
to:
function scpta_template_redirect() { if (!is_single() && is_custom_post_type_archive() ) :
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Simple Custom Post Type Archives] WPML single template fix’ is closed to new replies.