![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 32 Pomógł: 0 Dołączył: 14.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Robię stronkę opartą na Wordpressie, Chciałbym żeby nie wyglądała ona na WP tak więc chce ukryć: Tytuł posta, datę, przez kogo dodany itp. czyli taką belkę nad każdym postem, chce aby wyświetlało tylko treść posta. Czy można to jakoś prosto zrobić ? Żeby skrypt sobie tam działał a żeby go nie pokazywało. Znalazłem już linie w kodzie odpowiadające za to, tylko nie wiem jak zrobić żeby to działało a nie było tego widać. To chyba ten kawałek: CODE <!-- post --> <div id="post-<?php the_ID(); ?>" <?php if (function_exists("post_class")) post_class(); else print 'class="post"'; ?>> <?php if (!get_post_meta($post->ID, 'hide_title', true)): ?><h2><?php the_title(); ?></h2><?php endif; ?> <div class="post-content clearfix"> <?php the_content(__('Read the rest of this entry »', 'arclite')); ?> </div> <?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php $posttags = get_the_tags(); if ($posttags) { ?> <p class="tags"> <?php the_tags(__('Tags:','arclite').' ', ', ', ''); ?></p> <div class="clear"></div> <?php } ?> <p class="post-metadata"> <?php printf(__('This entry was posted on %s and is filed under %s. You can follow any responses to this entry through %s.', 'arclite'), get_the_time(__('l, F jS, Y','arclite')), get_the_category_list(', '), '<a href="'.get_post_comments_feed_link($post->ID).'" title="RSS 2.0">RSS 2.0</a>'); ?> <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'arclite'), trackback_url('',false)); } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'arclite'), trackback_url('',false)); } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Comments are open, Pings are not _e('You can skip to the end and leave a response. Pinging is currently not allowed.','arclite'); } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open _e('Both comments and pings are currently closed.','arclite'); } ?> <?php edit_post_link(__('Edit this entry', 'arclite')); ?> </p> </div> <!-- /post --> Pozdrawiam i z góry dziękuję za pomoc -------------------- Krzysztofperkowski.pl
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.07.2025 - 15:42 |