Własny szablon – problem z postami
-
Witam,
Mam problem z postami po tym, jak zgrałem własny szablon. Niestety, nie mogę znaleźć błędu i stąd moja prośba o Waszą pomoc 😀
Na początek może wkleję tu kilka linii kodu dotyczących tego fragmentu w HTML, PHP i CSS.
single.php
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<?php include (TEMPLATEPATH . '/inc/meta.php’ ); ?>
<div id=”articles”>
<h2><?php the_title(); ?></h2>
<div class=”entry”>
<?php the_content(); ?>
<?php wp_link_pages(array(’before’ => 'Pages: ’, 'next_or_number’ => 'number’)); ?>
<?php the_tags( 'Tags: ’, ’, ’, ”); ?>
</div>
<?php edit_post_link(’Edit this entry’,”,’.’); ?>
</div><?php comments_template(); ?>
<?php endwhile; endif; ?>
<div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
style.css
#articles {
float: right;
width: 750px;
margin: 100px 0 0 0;
position: relative;
}.post { margin: 0 0 40px 0; }
.post a { font-weight: bold; border-bottom: 1px dotted #647484; }
.post a:hover { border-bottom: 1px solid white; }
.post h4, .post h4 a, .post h4 a:hover { border: 0; margin: 0; }
.post h4 a:hover { text-decoration: underline; }
.post * ~ h3, .post * ~ h4 { margin-top: 25px; }Adres strony:
http://threematestest.hostzi.com/Z góry dzięki za każdą pomoc 🙂
- Temat ‘Własny szablon – problem z postami’ jest zamknięty na nowe odpowiedzi.