Home › Forum › Amministrazione WP › Abilitare i commenti sulle pagine
-
AutorePost
-
-
22 Agosto 2008 alle 15:22 #7650VanbastenPartecipante
Salve a tutti,
vorrei che su alcune pagine del mio sito si potessero inserire dei commenti solo che anche se quando creo la pagina spunto l’opzione permetti commenti nella pagina non trovo alcun modo per inserirli.
Sapreste come aiutarmi?
grazie
-
22 Agosto 2008 alle 20:07 #56985silvanaPartecipante
proprio per com’è wp i commenti sono possibili solo sugli articoli.
Se hai bisogno dei commenti crei un articolo con lo stesso titolo e aggiungi il link in fondo alla pagina ad esempio :
i commenti qui…
-
22 Agosto 2008 alle 20:19 #56986wollyAmministratore del forum
i commenti possono essera aggiunti anche alle pagine, se il tuo tema non lo prevede basta modificare il file page.php aggiungento il tag che richiama i commenti.
Se non sai come farlo studia dissezione di un tema nel nostro wiki.
-
22 Agosto 2008 alle 22:20 #56989VanbastenPartecipante
ciao 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?
-
22 Agosto 2008 alle 23:30 #56992wollyAmministratore del forum
no il codice per richiamare il file comments.php è questo:
comments_template();
-
24 Agosto 2008 alle 11:07 #57016VanbastenPartecipante
Ergo devo inserire
<?php comments_template(); ?>
alla fine di page.phpgiusto?
-
6 Settembre 2008 alle 15:20 #57391toscanoPartecipante
tipo in questo modo :
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="post-content">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php link_pages('<p>Pages: ', '</p>', 'number'); ?>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div><!--/content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.