Salve a tutti,
riprovo a chiedere aiuto a questo forum, non sono molto pratica di php (anche se un poco lo conosco) e wordpress, infatti ho un problema sicuramente di base non avendo capito bene il meccanismo del cms.
Nella pagina index.php ho messo questo codice
Come faccio a vedere in altre pagine i post in maniera diversa?codice:<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h2 id="post-<?php the_ID(); ?>">"><?php the_title(); ?></h2> <?php the_time('F jS, Y') ?> </p> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','','|'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <!-- <?php trackback_rdf(); ?> --> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?>
In una pagina ho mostrato solo i post di una determinata categoria, ma li apre tutti mi mostra i post interi, io invece vorrei vedere solo il titolo o in altri casi (in altre pagine) solo il contenuto.
Come posso fare?
Grazie per l'attenzione

Rispondi quotando
