- Home
- Categorie
- Coding e Sistemistica
- CMS & Piattaforme Self-Hosted
- Visualizzazione postmeta in maniera corretta.
- 
							
							
							
							
							
Visualizzazione postmeta in maniera corretta.Visualizzazione postmeta in maniera corretta. Ciao ho installato un tema in cui il post ha la seguente struttura: data, titolo, 
 contenuto
 categoria, commentinon so per quale ragione l'autore viene escluso. Io vorrei avere la seguente struttura: titolo, 
 data, autore, categoria, commenti,Potete aiutarmi? Grazie! [php]<?php get_header() ?> 
 <div class='content span-16'>
 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 <h1><?php the_time('d M y'); ?> <a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
 <?php the_content(); ?>
 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
 <?php if (function_exists('the_tags')) { ?>
 <?php the_tags('<p>Tags: ', ', ', '</p>'); ?>
 <?php } ?>
 <div style="clear:both;"></div>
 <div class="postmeta"><?php edit_post_link('Edit this page'); ?></div><?php comments_template(); ?> <?php endwhile; ?> <?php else : ?> <h1>Not Found</h1> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <div class="postmeta"></div> <?php endif; ?> <div style="clear:both"></div> <div class="navigation"> </div> </div> <?php get_sidebar() ?><?php get_footer() ?>[/php] 
 
- 
							
							
							
							
							
Prova così: <?php get_header() ?> <div class='content span-16'> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1><br /> <?php the_time('d M y'); ?> <?php the_author_posts_link(); ?> <?php the_category(', '); ?> <?php comments_popup_link('Commenta', '1 Commento', '% Commenti'); ?> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php if (function_exists('the_tags')) { ?> <?php the_tags('<p>Tags: ', ', ', '</p>'); ?> <?php } ?> <div style="clear:both;"></div> <div class="postmeta"><?php edit_post_link('Edit this page'); ?></div> <?php comments_template(); ?> <?php endwhile; ?> <?php else : ?> <h1>Not Found</h1> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <div class="postmeta"></div> <?php endif; ?> <div style="clear:both"></div> <div class="navigation"> </div> </div> <?php get_sidebar() ?> <?php get_footer() ?>
 
- 
							
							
							
							
							
Fantastico!!! Grazie! Ora come regolo lo spazio tra questi elementi? img2.pict.com/64/c3/6c/2899086/0/800/blogtest.png Posso agire tramite il file style.css? Il tema è il googlechrome ericulous.com/2008/09/09/wp-theme-google-chrome/ 
 
- 
							
							
							
							
							
Di che elementi si tratta. 
 
- 
							
							
							
							
							
Non riesco a mettere dello spazio tra la data e il contenuto del post come mostro in questa figura: 
 
- 
							
							
							
							
							
ok ho sistemato, ho aggiunto due <br /> prima di <?php the_content(); ?> in questo modo: <?php comments_popup_link('Commenta', '1 Commento', '% Commenti'); ?><br /> 
 <br />Grazie!