Visualizzazione 0 filoni di risposte
Visualizzazione 0 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Localizzazione WP › Predisposizione per multilingua
Ho un problema con un tema che sto realizzando, sempre lo stesso che ogni tanto vi propongo. LINK.
Vorrei rendere possibile l’installazione di un plugin per il multilingua, ma probabilmente a causa di un problema di progettazione del tema da parte mia c’è un aspetto che non funziona.
Ho provato a guardare gli altri posto ma non riesco ad uscirne.
Il tema ha uno slider e tre box che sono selezionabile dal pannello di controllo in modo che posso decidere esattamente cosa visualizzare. In questi elementi i contenuti vengono esposti in ambedue le lingue e non riesco a capire cosa ho sbagliato.
In function.php ho una serie di righe che riassumo in questo
<?php wp_dropdown_pages("name=home_box1&show_option_none=".__('- Select -')."&selected=" .get_option('somesay_home_box1')); ?>
mentre nell' index.php il valore viene richiamato in questo modo:
.....$page1=get_post(get_option('somesay_home_page1'));....
... <?php $pagelink = get_permalink($page1->ID, 'pagelink', true); ?>
<h3>"><?php echo $page1->post_title?></h3>
<?php $pageimage = get_post_meta($page1->ID, 'pageimage', true); ?>
<span><?php echo $pageimage; ?></span>
<p><?php echo apply_filters('get_the_excerpt', $page1->post_excerpt);?></p>
" alt="<?php echo $page1->post_title?>">
....
Il problema lo ho con il titolo e il riassunto, che sono i due campi che posso inserire in due lingue.
Tutto il resto del tema funziona, ma nn funziona questo dettaglio che guarda caso è l'unico dove io ho agito. Il plugin multilingua è qtranslate.
Grazie in anticipo.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0