Jump to content

Помогите исправить скрипт архива


Recommended Posts

Помогите пожалуйста решить проблему,на каждой страничке моего сайта отображается дата создания этой самой странички,пожскажите как мне ее скрыть.Заранее спасибо :)

Вот скрипт:

<?php get_header(); ?><div id="content" class="narrowcolumn">	<?php if (have_posts()) : ?>	 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?><?php /* If this is a category archive */ if (is_category()) { ?>	<h2 class="pagetitle">Архив ‘<?php echo single_cat_title(); ?>’</h2>	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>	<h2 class="pagetitle">Архив за <?php the_time('j F , Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>	<h2 class="pagetitle">Архив <?php the_time('F Y'); ?></h2>	<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>	<h2 class="pagetitle">Архив за <?php the_time('Y'); ?></h2>  <?php /* If this is an author archive */ } elseif (is_author()) { ?>	<h2 class="pagetitle">Архив автора</h2>	<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>	<h2 class="pagetitle">Архив</h2>	<?php } ?>	<div class="navigation">		<div class="alignleft"><?php next_posts_link('« Раньше') ?></div>		<div class="alignright"><?php previous_posts_link('Позже »') ?></div>	</div>	<?php while (have_posts()) : the_post(); ?>	<div class="post">			<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Постоянная ссылка <?php the_title(); ?>"><?php the_title(); ?></a></h3>			<small><?php the_time('l, j F, Y') ?></small>			<div class="entry">				<?php the_content('Далее...') ?>			</div>			<p class="postmetadata"><?php the_tags('Метки: ', ', ', '<br />'); ?> Рубрика: <?php the_category(', ') ?> | <?php edit_post_link('Изменить', '', ' | '); ?>  <?php comments_popup_link('Нет комментариев »', '1 комментрий »', 'Комментариев: % »'); ?></p>		</div>	<?php endwhile; ?>	<div class="navigation">		<div class="alignleft"><?php next_posts_link('« Раньше') ?></div>		<div class="alignright"><?php previous_posts_link('Позже »') ?></div>	</div><?php else : ?>	<h2 class="center">Не найдено</h2>	<?php include (TEMPLATEPATH . '/searchform.php'); ?><?php endif; ?></div><?php get_sidebar(); ?><?php get_footer(); ?>
Edited by Darhazer
Link to comment
Share on other sites

А где появляеться дата

Здесь не целий код - например нет имплементации get_footer()

Так что пожалуйста уточните где точно находиться то, которое хотите убрать

Link to comment
Share on other sites

А где появляеться дата

Здесь не целий код - например нет имплементации get_footer()

Так что пожалуйста уточните где точно находиться то, которое хотите убрать

Хм...там всего два файла...archive.php(который я вначале выложила),и есть еще archives.php,может в нем править надо?

Вот он:

<?php

/*

Template Name: Archives

*/

?>

<?php get_header(); ?>

<div id="content" class="widecolumn">

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<h2>Archives by Month:</h2>

<ul>

<?php wp_get_archives('type=monthly'); ?>

</ul>

<h2>Archives by Subject:</h2>

<ul>

<?php wp_list_categories(); ?>

</ul>

</div>

<?php get_footer(); ?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...