WordPress

Witaj Gościu ( Zaloguj | Rejestruj )

Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!

> Uwaga!

Jeśli opisujesz problem ze skórką - podaj link do downloadu - nie każdy ma tą skórkę co Ty ;)

 
Reply to this topicStart new topic
> Usuwanie daty i kategorii z osobnej strony.
PaulSoiree
post 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
Go to the top of the page
 
+Quote Post
Fanatyk
post 04.11.2006 - 15:52
Post #2


Administrator
********

Grupa: Administrator
Postów: 1 467

Nr: 1



za wyświetlanie stron odpowiada page.php


--------------------
Go to the top of the page
 
+Quote Post
PaulSoiree
post 04.11.2006 - 15:54
Post #3


aktywność:
*

Grupa: Bloger
Postów: 6

Nr: 796



CYTAT(Fanatyk @ 04.11.2006 - 16:52)
za wyświetlanie stron odpowiada page.php
*


przykro mi, Simpla nie ma page.php
Go to the top of the page
 
+Quote Post
Fanatyk
post 04.11.2006 - 16:47
Post #4


Administrator
********

Grupa: Administrator
Postów: 1 467

Nr: 1



To trzeba zrobić smile.gif
Skopiuj sobie index.php, usuń kod wyświetlający datę i zapisz jako page.php smile.gif


--------------------
Go to the top of the page
 
+Quote Post
jarodbartenders
post 16.5.2008 - 10:04
Post #5


aktywność:
*

Grupa: Bloger
Postów: 10

Nr: 3 578



CYTAT(Fanatyk @ 04.11.2006 - 17:47) *
To trzeba zrobić smile.gif
Skopiuj sobie index.php, usuń kod wyświetlający datę i zapisz jako page.php smile.gif




<?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('&laquo; Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
</div> <!-- end navigation -->

</div>
<!--end content -->


<?php get_sidebar(); ?>

<?php get_footer(); ?>




co z tego mam usunac?
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:

 



Wersja Lo-Fi Aktualny czas: 21 11 08 - 05:01
Polski Blogger | Forum Komputerowe | Spotkania blogerów