Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!
![]() ![]() |
24.9.2008 - 09:30
Post
#1
|
|
|
aktywność: ![]() ![]() Grupa: +Bloger Postów: 24 Nr: 3 703 |
Witam. Na mojej stronie wchodząc w archiwum (jakiegoś miesiąca) lub kategorię, jest tylko temat newsa, a chciałbym aby był wyświetlany tytuł i treść. Co muszę zrobić, aby news w archiwum i kategoriach tak się wyświetlał? Proszę o pomoc, z góry bardzo dziękuję
|
|
|
|
25.9.2008 - 14:43
Post
#2
|
|
|
aktywność: ![]() ![]() Grupa: +Bloger Postów: 24 Nr: 3 703 |
Przepraszam, że pisze post pod postem, ale bardzo mi zależy na tym aby w kategoriach i archiwach wyświetlała się cała treść wpisu, a nie tylko temat.
Proszę o odpowiedz. Ten post edytował Cziki 25.9.2008 - 14:43 |
|
|
|
25.9.2008 - 15:48
Post
#3
|
|
|
aktywność: ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 341 Nr: 2 655 |
daj link do bloga i pokaż zawartość pliku archive.php w katalogu Twojego szablonu
-------------------- masz problem z "Warning: Cannot modify header information - headers already sent by" ?? W 99.9% przypadków chodzi o BOM. Więcej --> http://www.wordpress.org.pl/bl%B1d-pod-cza...acji-t4763.html albo http://www.wordpress.org.pl/search/
|
|
|
|
26.9.2008 - 15:22
Post
#4
|
|
|
aktywność: ![]() ![]() Grupa: +Bloger Postów: 24 Nr: 3 703 |
Them, którego używam nie ma pliku archive.php, ale wszystko jest chyba w pliku index.php
index.php CODE <?php
get_header(); ?> <div id="contentbox"> <div id="content"> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <h2 class="archives">Obecnie przegladasz archiwum dla kategorii: <?php single_cat_title(''); ?>.</h2> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <h2 class="archives">Obecnie przeglądasz archiwa dla dnia <?php the_time('l, F jS, Y'); ?>.</h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2 class="archives">Obecnie przeglądasz archiwa dla <?php the_time('F, Y'); ?>.</h2> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>Obecnie przeglądasz archiwa roku <?php the_time('Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <h2 class="archives">You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</h2> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2 class="archives">You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</h2> <?php } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div style="clear: both;"></div> <div class="post-date"><span class="month"><?php the_time('M') ?></span> </div> <div class="post-block"> <div class="storytitle"><h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3></div><div style="clear: both;"></div> <div class="meta"> <?php if(!is_page()): ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/date.png" alt="post" style="margin-bottom: 0px; margin-right: 2px;" /><?php the_date('','',''); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/category.png" alt="post" style="margin-bottom: 0px; margin-right: 1px;" /> <?php the_category(',') ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comments.png" alt="post" style="margin-bottom: 0px;" /> <?php comments_popup_link(__('Komentarze (0)'), __('Komentarze (1)'), __('Komentarze (%)')); ?> <?php edit_post_link(__('Edytuj')); ?> <?php endif; ?> </div> </div> <div style="clear: both;"></div> <div class="post" id="post-<?php the_ID(); ?>"> <?php if(is_home() || is_single() || is_page()): ?> <div class="storycontent"> <?php the_content(__('(Więcej...)')); ?> </div> <?php else: echo ""; endif; ?> <div><?php wp_link_pages(); ?></div> </div> <div class="pagenav"> <div class="alignleft"><?php previous_post_link('« %link') ?></div> <div class="alignright"><?php next_post_link('%link »') ?></div> </div> <?php comments_template(); // Get wp-comments.php template ?> <?php endwhile; ?> <div class="pagenav"> <div class="alignleft"><?php next_posts_link('« Starsze') ?></div> <div class="alignright"><?php previous_posts_link('Nowsze »') ?></div> </div> <?php else: ?> <h2 class="center">Nie znaleziono</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <div> <input class="search" type="text" name="s" id="s" size="20" /> <br /> <input type="submit" name="submit" value="<?php _e('Szukaj'); ?>" /> </div> </form> <?php endif; ?> <?php get_footer(); ?> Ten post edytował Kasia79 28.9.2008 - 20:59
Powód edycji: wstawienie codebox
|
|
|
|
28.9.2008 - 21:05
Post
#5
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 878 Nr: 2 641 |
W tym pliku masz takie coś:
KOD <?php if(is_home() || is_single() || is_page()): ?> <div class="storycontent"> <?php the_content(__('(Więcej...)')); ?> </div> <?php else: echo ""; endif; ?> By w kategoriach i archiwum też mieć pełną treść powinno to wyglądać tak: KOD <?php if(is_home() || is_single() || is_page() || is_category() || is_archive()): ?> <div class="storycontent"> <?php the_content(__('(Więcej...)')); ?> </div> <?php else: echo ""; endif; ?> Kasia -------------------- Curiosity killed the cat, but satisfaction brought her back.
|
|
|
|
![]() ![]() |
| Wersja Lo-Fi | Aktualny czas: 4 12 08 - 03:38 |