• Hi, im using wpglobus + wpglobus plus + yoast
    on normal posts, they work well, in editor switching between languages is done by reloading the page with new parameter like &language=ru
    but i have problems with custom posts added like this:

    $args = array(
      'public' => true,
      'has_archive' => false,
      'show_ui' => true,
      'capability_type' => 'post',
      'hierarchical' => true,
      'taxonomies' => array('category'),
      'depth' => 2,
      'rewrite' => array(
      'slug' => 'books',
      'with_front' => true,
      'hierarchical' => false
     ),
     'query_var' => true,
     'supports' => array(
      'title',
      'editor',
      'thumbnail'
     ),
     'labels' => array(
      'name' => __('Books', 'wp')),
     )
    );
    register_post_type('books', $args);

    for this posts, in editor, switching between languages is done without reloading the page and just by using jquery tabs, like #tab-ru
    so in this case yoast section not changing and texts remain same for all languages and by saving post all meta become common for all languages

    if I use something like {:en}EN{:}{:ru}RU{:}in yoast fields, they work like it should on the website, but I need to save it like this each time I do any small changes

    P.S.: I also tried to open custom posts with &language=ru in URL but it not work, using #tab-ru in URL opening RU version but also save will overwrite yoast meta fields with only RU version

    Any suggestions on how to fix this issue are welcome

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yoast meta on custom posts’ is closed to new replies.