1. Adres strony
2. Kod pliku single.php
1. pb.avrio.pl
2.
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
<p><?php the_content('<p class=”serif”>Read the rest of this entry »</p>’); ?></p>
<p><?php the_tags();�?></p>
<div class=”post-details”> <h3>Posted in <?php the_category(’ and ’,”);�?> by <?php the_author() ?> on <?php the_time(’F jS, Y’) ?> at <?php the_time() ?>.
</h3><h3>#comments”><?php comments_number(’Add a comment’,’1 comment’,’% comments’); ?></h3>
</div>
<h3><?php wp_link_pages(array(’before’ => '<p>Pages: ’, 'after’ => '</p>’, 'next_or_number’ => 'number’)); ?></h3>
<div class=”prevnext”>
<h3><?php previous_post_link(’Previous Post: %link’,’%title’,TRUE);�?>   <?php next_post_link(’Next Post: %link’,’%title’,TRUE);�?></p></h3></div>
<?php edit_post_link(’Edit Post’, '<p>’, '</p>’); ?></p>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>Nothing to see here</h2>
<p>You seemed to have found a mislinked file, page, or search query with zero results. If you feel that you’ve reached this page in error, double check the URL and or search string and try again.</p>
<p>Alternatively, a more personalized method of tracking down and searching for content can be found below.</p>
</div>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>
Dzięki 🙂
No jak byk jest …
<h3>#comments"><?php comments_number('Add a comment','1 comment','% comments'); ?></h3>
Już wrzucałem to w komentarz
<!–…–>
i nic się nie zmienia!!
Spróbuje jeszcze usunąć.
To nie to, usunąłem i nic się nie zmienia.
To zrobimy eksperyment. Wytnij cały kod z pliku single.php i zapisz go. Odśwież stronę pojedynczego wpisu – co widzisz? Potem z powrotem wklej kod.
Zero zmian, czyli kod za to odpowiedzialny jest gdzieś indziej!?!
Dokładnie, edytujesz nie to co powinieneś, albo masz jakieś cache’owanie włączone.
Sprawdź jeszcze plik page.php, a jeśli to nie pomoże, to zainstaluj sobie wtyczkę Ask Apache What Is This. Działa ona w ten sposób, że w przeglądarce, w miejscu gdzie zwykle widzisz title, zobaczysz która tamplatka odpowiada za generowanie danej strony. Dla przykładu: dla stron będzie to is_page, dla wpisów is_single, dla strony głównej np. is_home itd. Potem wtyczkę wyłącz.
Jeszcze jedno, strony mogą być oparte o kategorie, więc sprawdź jeszcze plik category.php i poszukaj tej linii, o której pisał amistad.
Dzięki bardzo za pomoc!!
W końcu udało mi się odnaleźć odpowiedni kawałek kodu w index.php 😀