Risposte nei forum create
-
AutorePost
-
VanbastenPartecipante
Ciao YouON
ho trovato il problema ma non la soluzione.
Il problema sta che il codice dei commenti è richiamato dopo un ciclo foreach che probabilmente non si chiude, si tratta del codice dei similar post ed è questo
<div id="boxrelatedarticle">
<ul class="relatedul">
<?php
global $post;
$end_post = $post;
$escl= ($post->ID);
$category = get_the_category();
$siabu=($category[0]->cat_ID);
$args = array( 'numberposts' => 5, 'category' => $siabu, 'exclude' => $escl );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if (function_exists("has_post_thumbnail") && has_post_thumbnail() ) {
the_post_thumbnail( 'archive', array('alt' => ''.get_the_title().''), array('class' =>
'alignleft')); } ?>
<p align="center"><?php the_title('<strong>', '</strong>'); ?></p>
</a>
</li>
<?php endforeach; ?>
<?php $post = $end_post; ?>
</ul>
</div>Quindi il codice di commento non viene riferito all’articolo della pagina che si sta visitando ma si riferisce alla pagina che compare come ultimo risultato dei similar post.
Infatti se sposto il
comments_template();
sopra al codice dei similar post il sistema dei commenti funziona perfettamente.
Tuttavia a me servirebbe in fondo alla pagina e non sopra.
VanbastenPartecipanteRisolto a mano. Potete chiudere.
VanbastenPartecipanteSi ho molti più articoli rispetto alla home.
Su pannello di controllo è settato a 20 articoli da mostrare ma non è da quello che influisce.
Secondo me manca qualche funzione o file ecco il codice per accedere a page2, è giusto?
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<div class="right"><?php next_posts_link('Next Page »') ?></div>
<div class="left"><?php previous_posts_link('« Previous Page') ?></div>
<?php } ?>
</div>
VanbastenPartecipanteUp, nessuno che sappia a che file fanno riferimento le page2 page3 ecc di wordpress??
VanbastenPartecipanteti assicuro che ho provato anche io in tutti i modi ma niente da fare, l’unica soluzione è installare tutto di nuovo.
Peccato che anche io come te non posso prendermi questo lusso.
VanbastenPartecipanteAnche a me è successo cosà¬, solo che ormai mi sono abituato all’html che tanto già usavo più della visuale
VanbastenPartecipanteErgo devo inserire
<?php comments_template(); ?>
alla fine di page.phpgiusto?
VanbastenPartecipantePaola hai controllato che non sia un problema della casella email?
probabilmente non è abilitata a ricevere email in formato html
comunque grazie per il plugin è il migliore per le newsletter anche se qualche provider spedisce le mail in spam
VanbastenPartecipanteciao wolly grazie per avermi risposto, quindi io dovrei inserire il codice di comments.php in page.php
PS: http://www.wpitaly.it/wiki/Main/DissezioneTemaWP45
è questo il codice?
-
AutorePost