Home › Forum › Plugin e temi di WP › Mostrare tutto il post anzichè l’anteprima
-
AutorePost
-
-
7 Giugno 2009 alle 15:20 #10575kikkormPartecipante
Ciao a tutti, dovrei impostare il mio blog affinchè si leggano i post per intero nella home e non soltanto un’anteprima, ma con il tema che mi sono scelto non ci riesco. Come faccio a disabilitare l’anteprima dei post e farli visualizzare per intero ? Se c’è qualche illuminato che ci capisca, qui sotto vi incollo l’index.php . Grazie!!!
<?php get_header() ?>
<div class="container containercontent">
<div class='span-11 prepend-1'>
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php if (function_exists('post_class')) { post_class(); } else { echo 'class="post"'; } ?> id="post-<?php the_ID(); ?>">
<div class="postwrapper">
<h1 class="posttitle">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
<dl>
<dt><?php the_category(', ') ?></dt>
<dd class="postmetacomment"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments' );?></dd>
<dd class="postcontent">
<b><?php the_time('d M Y'); ?></b>
<?php the_content_rss('',TRUE,'',10000); ?>
<?php if (function_exists('the_tags')) { ?>
<?php the_tags(' {Tags: ', ', ', '}'); ?>
<?php } ?>
{" title="<?php the_title(); ?>">More...}
<?php edit_post_link('Edit', ' | '); ?>
</dd>
</dl>
</div>
</div>
<?php endwhile; ?>
<div style="clear:both"></div>
<?php else : ?>
<h1 class="posttitle">Oops... No Items Found</h1>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<div class="navigation">
<span class="alignleft"><?php next_posts_link('« Previous Posts') ?></span>
<span class="alignright"><?php previous_posts_link('Next Posts »') ?></span>
<div style="clear:both"></div>
</div>
</div>
</div>
<div class='span-11 append-1 last'>
<?php get_sidebar() ?>
</div>
<?php get_footer() ?>
-
7 Giugno 2009 alle 15:48 #65845SteveAglAmministratore del forum
Invece di incollare codice non richiesto il tempo perso sarebbe stato meglio investito nel cercare sul forum la risposta ad uan domanda trita e ritrita… e no, replicare che non si trova non è una risposta…
-
8 Giugno 2009 alle 5:11 #65847sLaPartecipante
Ha ragione SteveAgl … Tra l’altro chi fa questi “temi” sarebbe da lapidare! Ci sono decine di linee di codice legacy, vecchio, doppio, rindondante ed inutile … Se la’ in mezzo ci metti un codice banner e ci pubblici articoli di cucina ti ci escono annunci di partite con le grette … Cmq sia, chiunque abbia un minimo di esperienza in wp/php risolverebbe questo problema in un lampo, senza copiare come a scuola anche il nome e congnome del secchione di turno. Se poi quel codice lo hai scritto tu, beh allora ragione doppia!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.