Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter mdonato

    (@mdonato)

    Hi, in the meantime I have found a solution:

    1. Add this method in the plugin code: multilingual-text.php:

    static function PostTitle($postTitle)
    {
    	self::$title_multilingual = true;
    	if ( strlen($postTitle) == 0 ) return;
    	return $postTitle;;
    	//self::$title_multilingual = false;
    }

    2. Edit wp-includes\post-template.php -> function start_el(…) change this row from:

    $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';

    to:

    $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', Multilingual_Text::PostTitle($page->post_title), $page->ID ) . $link_after . '</a>';

    And the problem is solved.
    If someone has found a better solution, please let me know.

    Bye

Viewing 1 replies (of 1 total)