IPB

( Zaloguj | Zarejestruj )

 
Reply to this topicStart new topic
> Wyświetlanie samych tytułów w archiwum
zonkil
post 30.1.2010 - 13:07
Post #1


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



Witam
Czy jest jakaś możliwość aby w archiwum pojawiały się same tytuły bez treści? Strona stoi na tym adresie http://www.bajkizdziecinstwa.pl/ i wolabym spis bez treści. Da się to zrobić?
Z góry dzięki za pomoc.
Go to the top of the page
 
+Quote Post
aeros
post 30.1.2010 - 13:43
Post #2


aktywność:
****

Grupa: +Bloger
Postów: 325

Nr: 5 727



Podaj archive.php
Go to the top of the page
 
+Quote Post
zonkil
post 30.1.2010 - 17:01
Post #3


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



CODE
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>

<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">Archiwum kategorii ‘<?php single_cat_title(); ?>’</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">Wpisy oznaczone ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archiwum dnia <?php the_time('j F Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archiwum miesiąca <?php the_time('F Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archiwum roku <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Wpisy autora</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Archiwum bloga</h2>
<?php } ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post">
<div class="posthead">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<p class="postmeta">autor: <?php the_author_posts_link(); ?> kat.: <?php the_category(', ') ?> <span class="count"><?php comments_popup_link('0 komentarzy', '1 komentarz', 'Komentarzy: %'); ?></span></p>
<div class="date">
<strong class="month"><?php the_time('M') ?></strong>
<strong class="day"><?php the_time('d') ?></strong>
</div>
</div>

<div class="postcontent">
<?php the_content('Czytaj dalej &raquo;'); ?>
</div>
<div class="posttax">
<?php if (function_exists('the_tags')) { ?> <ul><li class="first">Tagi:</li><?php the_tags('<li>', '</li><li>', '</li></ul>'); ?><?php } ?>
<br class="clear" />
</div>
</div><!-- /post -->
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('Starsze wpisy') ?></div>
<div class="alignright"><?php previous_posts_link('Nowsze wpisy') ?></div>
</div>
<?php else : ?>

<h2>Nie znaleziono</h2>
<p>Niestety, nie ma tutaj tego, co szukasz.</p>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
Go to the top of the page
 
+Quote Post
zonkil
post 30.1.2010 - 20:09
Post #4


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



Chodzi mi także o wyświetlanie samych tytułów w kategoriach.
Go to the top of the page
 
+Quote Post
Fladnag
post 30.1.2010 - 20:16
Post #5


aktywność:
***

Grupa: +Bloger
Postów: 237

Nr: 7 706



Masz tam tak skonstruowane, że wszystkie archiwa i kategorię wyświetlają się tak samo. A zatem, jeśli chcesz mieć same tytuły zamień:
KOD
<div class="post">
<div class="posthead">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<p class="postmeta">autor: <?php the_author_posts_link(); ?> kat.: <?php the_category(', ') ?> <span class="count"><?php comments_popup_link('0 komentarzy', '1 komentarz', 'Komentarzy: %'); ?></span></p>
<div class="date">
<strong class="month"><?php the_time('M') ?></strong>
<strong class="day"><?php the_time('d') ?></strong>
</div>
</div>

<div class="postcontent">
<?php the_content('Czytaj dalej ?'); ?>
</div>
<div class="posttax">
<?php if (function_exists('the_tags')) { ?> <ul><li class="first">Tagi:</li><?php the_tags('<li>', '</li><li>', '</li></ul>'); ?><?php } ?>
<br class="clear" />
</div>
</div><!-- /post -->


Na następujący fragment.

KOD
<div class="post">
<div class="posthead">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Stały link do wpisu <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</div></div><!-- /post -->


Ten post edytował Fladnag 30.1.2010 - 20:17
Go to the top of the page
 
+Quote Post
zonkil
post 30.1.2010 - 22:32
Post #6


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



Dzięki działa ale nie do końca chce żeby wyświetlał wszystkie wpisy a nie 3
Go to the top of the page
 
+Quote Post
Fladnag
post 30.1.2010 - 22:48
Post #7


aktywność:
***

Grupa: +Bloger
Postów: 237

Nr: 7 706



Panel administracyjny>Ustawienia>Ustawienia wyświetlania>Strony bloga będą wyświetlać co najwyżej. Ustaw większą wartość.
Uprzedzam pytanie; nie można ustawić innej wartości dla kategorii i innej dla strony głównej. Przynajmniej bez grzebania w bebechach wordpress'a.

Ten post edytował Fladnag 30.1.2010 - 22:51
Go to the top of the page
 
+Quote Post
zonkil
post 30.1.2010 - 23:02
Post #8


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



To chodzi mi o zmianę tego i będe musiał grzebać dodam że na stronie www.dokumentalne.pl wszystko ładnie się wyświetla można to skopiować?

Ten post edytował zonkil 30.1.2010 - 23:02
Go to the top of the page
 
+Quote Post
Fladnag
post 30.1.2010 - 23:14
Post #9


aktywność:
***

Grupa: +Bloger
Postów: 237

Nr: 7 706



Dokumentalne bazuje na komercyjnym (chyba) theme'ie, więc z kopiowanie raczej nie wchodzi w grę. Grzebania odradzam jeśli dobrze nie znasz php. Może uda Ci się rozwiązać problem tym plauginem: http://wordpress.org/extend/plugins/cbnet-...posts-per-page/
Go to the top of the page
 
+Quote Post
zonkil
post 31.1.2010 - 09:24
Post #10


aktywność:


Grupa: Bloger
Postów: 16

Nr: 6 932



Z wami to wszystko da się zrobić smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



: 23 05 12 - 16:54