Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!
Jeśli opisujesz problem ze skórką - podaj link do downloadu - nie każdy ma tą skórkę co Ty ;)
![]() ![]() |
04.11.2006 - 15:40
Post
#1
|
|
|
aktywność: ![]() Grupa: Bloger Postów: 6 Nr: 796 |
Witam.
Dopiero zacząłem bawić się WordPressem i napotkałem mały problem. Otóż kiedy na innych theme'ach niż Simpla, po dodaniu nowej strony jest ona po prostu pusta, o tyle na Simpla nowa strona oprócz tekstu, który możemy zedytować, ma również datę i kategorię. Kłopot w tym, że nie doszukałem się gdzie to można usunąć, bo gdy usuniemy to w index, to wtedy zniknie również data i kategoria ze strony głównej. http://www.kreem.fc.pl/soiree/wordpress Ten post edytował PaulSoiree 04.11.2006 - 15:40 |
|
|
|
04.11.2006 - 15:52
Post
#2
|
|
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Administrator Postów: 1 467 Nr: 1 |
za wyświetlanie stron odpowiada page.php
-------------------- |
|
|
|
04.11.2006 - 15:54
Post
#3
|
|
|
aktywność: ![]() Grupa: Bloger Postów: 6 Nr: 796 |
|
|
|
|
04.11.2006 - 16:47
Post
#4
|
|
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Administrator Postów: 1 467 Nr: 1 |
To trzeba zrobić
Skopiuj sobie index.php, usuń kod wyświetlający datę i zapisz jako page.php -------------------- |
|
|
|
16.5.2008 - 10:04
Post
#5
|
|
|
aktywność: ![]() Grupa: Bloger Postów: 10 Nr: 3 578 |
To trzeba zrobić Skopiuj sobie index.php, usuń kod wyświetlający datę i zapisz jako page.php <?php get_header(); ?> <div id="content"> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="pagetitle">Archives for <?php single_cat_title(''); ?> category</h2> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <h2 class="pagetitle">Archives for the day <?php the_time('l, F jS, Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2 class="pagetitle">Archives for <?php the_time('F, Y'); ?></h2> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h2 class="pagetitle">Archives for the year <?php the_time('Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <h2 class="pagetitle">You searched for: <?php the_search_query(); ?>, here are the results:</h2> <?php } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>Posted on <?php the_time('M d, Y') ?> under <?php the_category(', ') ?> | <?php comments_popup_link(__('No Comment'), __('1 Comment'), __('% Comments'), 'commentslink', __('Comments are off')); ?> <?php edit_post_link(__('Edit'), ' · ', ''); ?></small> <?php the_content('Read the rest of this entry »'); ?> </div> <?php endwhile; ?> <?php else : ?> <div class="post"> <h2>Not Found</h2> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> </div> <?php endif; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> </div> <!-- end navigation --> </div> <!--end content --> <?php get_sidebar(); ?> <?php get_footer(); ?> co z tego mam usunac? |
|
|
|
![]() ![]() |
| Wersja Lo-Fi | Aktualny czas: 21 11 08 - 05:01 |