Здравствуйте! Подскажите как убрать надпись "Далее" если она в файлаш шаблона не отображается, а есть вот такая надпись:
PHP код:
<?php the_content(); ?>
<p class="continue"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>">Read Full Story...</a></p>
- 15.04.2012 13:38
- Регистрация: 14.02.2011
- Сообщений: 15
- Репутация: 10
Последний раз редактировалось ArhStrAngeR; 15.04.2012 в 15:21. Причина: оформляйте код в теги кода
- 15.04.2012 14:04PHP код:Удали
<p class="continue"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>">Read Full Story...</a></p>
Последний раз редактировалось ArhStrAngeR; 15.04.2012 в 15:22. Причина: оформляйте код в теги кода
- 15.04.2012 14:09
- Регистрация: 14.02.2011
- Сообщений: 15
- Репутация: 10
AntoXa,
В общем получается вот что: после удаленияPHP код:удалилось только Read Full Story..., а Далее... осталось<p class="continue"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>">Read Full Story...</a></p>
Последний раз редактировалось ArhStrAngeR; 15.04.2012 в 15:22. Причина: оформляйте код в теги кода
- 15.04.2012 14:10
Скинь весь файл, и ты уверен, что редактируешь правильный файл?
- 15.04.2012 14:15
- Регистрация: 14.02.2011
- Сообщений: 15
- Репутация: 10
AntoXa,
Редактирую 3 файла: home.php, index.php и archive.php
home.php
<?php get_header(); ?>
<div class="column span-24 wrap">
<?php include("sidebar-left.php"); ?>
<div class="column span-12 featured">
<div class="column span-12 quote last">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php endif; ?>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="column span-12 last">
<div class="entrytitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-info">
<span class="time"></span> | <span class="comments"><?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('Your feedback', '1 feedback', 'Reviews (%)'); ?></span>
</div>
</div>
<div class="entry">
<?php the_content(); ?>
</div>
</div>
<hr/>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous page') ?></div>
<div class="alignright"><?php previous_posts_link('Next page »') ?></div>
</div>
</div><!-- / Show main featured posts -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>[свернуть]index.php
<?php get_header(); ?>
<div class="column span-24 wrap">
<?php include("sidebar-left.php"); ?>
<div class="column span-12 featured">
<div class="column span-12 quote last">
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="column span-12 last">
<div class="entrytitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entry">
<?php the_content(); ?>
<div class="post-info">
<span class="category">Category: <?php the_category(', ') ?></span>
<span class="tags"><?php the_tags(); ?></span>
<span class="comments">Reviews: <a href="#comments"><?php comments_number('0', '1', '%' ) ?></a> <?php edit_post_link('| Edit','',''); ?></span>
</div>
</div>
</div>
<hr/>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous page') ?></div>
<div class="alignright"><?php previous_posts_link('Next page »') ?></div>
</div>
</div><!-- / Show main featured posts -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>[свернуть]archive.php
<?php get_header(); ?>
<div class="column span-24 wrap">
<?php include("sidebar-left.php"); ?>
<div class="column span-12 featured">
<?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>Archive: <?php echo single_cat_title(); ?></h2>
<?php /* If this is a tag */ } elseif (is_tag()) { ?>
<h2>Tag: <?php echo single_tag_title('', true); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2> </h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2>Search results</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2></h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="column span-12 last">
<div class="entrytitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entry">
<?php echo strip_tags(get_the_content(), '<p><a><strong>'); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous page') ?></div>
<div class="alignright"><?php previous_posts_link('Next page »') ?></div>
</div>
<?php endif; ?>
</div><!-- / Show main featured posts -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>[свернуть]Последний раз редактировалось ArhStrAngeR; 15.04.2012 в 15:20. Причина: Скрывайте большое количество текста под спойлер!
- 15.04.2012 14:25
- Регистрация: 19.12.2009
- Сообщений: 145
- Репутация: 32
- 15.04.2012 14:26
Либо я плохо знаю структуру WP, либо здесь нету необходимо файла.
Скиньте дерево данной папки.Спасибо сказали:
vano131984(15.04.2012), - 15.04.2012 14:43
- Регистрация: 14.02.2011
- Сообщений: 15
- Репутация: 10
AntoXa,
Спасибо! Реально помогло!!!
---------- Сообщение добавлено 13:43 ---------- Предыдущее 13:27 ----------
AntoXa,
Возникла еще одна проблема. Не отображаются картинки когда заходишь в категорию. В полной новости и в анонсе они отображаются, а вот в категориях ни как. В чем может быть проблема? - 15.04.2012 14:49
- Регистрация: 19.12.2009
- Сообщений: 145
- Репутация: 32
Спасибо сказали:
ArhStrAngeR(15.04.2012), vano131984(15.04.2012), - 15.04.2012 14:57
- Регистрация: 14.02.2011
- Сообщений: 15
- Репутация: 10
ctapbiu,
Спасибо!
Похожие темы
Темы | Раздел | Ответов | Последний пост |
---|---|---|---|
как на wordpress multisite убрать /blog в чпу? | Web программирование | 4 | 22.09.2020 13:13 |
Как убрать "далее..." в WordPress | WordPress | 9 | 05.12.2011 16:35 |
Как в RSS Wordpress убрать рамку вокруг картинки? | Web программирование | 3 | 07.04.2011 00:10 |
как изменить надпись внизу страницы | Вопросы от новичков | 10 | 27.10.2010 19:40 |