Support » Plugin: 012 Ps Multi Languages » Author name shown in second language pages

  • Hey there,

    I have installed the plugin to my WordPress website and I copied some code I found in this support forum into the header.php to show the flags. Since I have copied the code into the header.php the name of the author of each page is shown on the English website. It is not shown on the Dutch website. Dutch is the default language.

    It is very important to me that the names of the authors of the pages are not shown. Please help!

    This is the code:

    <?php
    // for multilanguage change flag
    if ( function_exists( 'ps_012_multilingual_list' ) )
    {
    	$gs = ps_012_multilingual_list(false);
    }
    foreach(array_reverse($gs, true) as $key=>$val){
    		$flags_dir = get_bloginfo('template_directory');
    		$flags_dir .= '/images/flags/';
    		$flag_icon = $flags_dir . $key . '.png';
    		if ( ps_url_exists( $flag_icon )):
    			if ($val['current']) {
    				$flag_icon = '<img src="'.$flag_icon.'" style="float:right;margin:2px;border:1px solid #021a40;background-color:#ff0>"';
    			}
    			else
    			{
    				$flag_icon = '<img src="'.$flag_icon.'" style="float:right;margin:2px">';
    			}
    		endif;
    		$html .= '<a href="'.$val['url'].'">'.$flag_icon.'</a>&nbsp';
    	}
    
    	echo $html;
    
    ?>

    https://wordpress.org/plugins/012-ps-multi-languages/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Author name shown in second language pages’ is closed to new replies.