Помощник
|
Wordpress |
Eisenberg
|
Сообщение
#1
|
||
|
|
||
|
|||
planchik |
28.7.2009, 20:45;
Ответить: planchik
Сообщение
#2
|
|
Картинка залита на хостинг?
|
|
|
dante01 |
28.7.2009, 21:02;
Ответить: dante01
Сообщение
#3
|
|
в файле index.php : воспользуйтесь поиском по документу и найдите вот такой текст
<?php the_excerpt(); ?> и замените его на <?php the_content(__('Читать дальше..'));?> -вроде бы вот так. Сообщение отредактировал dante01 - 28.7.2009, 21:05 -------------------- |
|
|
gangstar90 |
28.7.2009, 21:33;
Ответить: gangstar90
Сообщение
#4
|
|
перейдите в html блок, после нужного Вам количества символов вставьте тег <!--more--> там есть кнопка написано more, но картинка в новости должна быть в начале поста или после энного колва символов
пример сайта http://powderblue.ru -------------------- Писать в лс для рассмотрения Вашего ресурса |
|
|
Eisenberg
|
Сообщение
#5
|
|
Картинка залита на хостинг? да, но и так и так пробывал не идёт в файле index.php : воспользуйтесь поиском по документу и найдите вот такой текст <?php the_excerpt(); ?> и замените его на <?php the_content(__('Читать дальше..'));?> -вроде бы вот так. такого не найдено в файле индекс html блок это при добавление новости? вот файл индекс. <?php global $color; ?>
<?php get_header(); ?> <?php get_sidebar(); ?> <div id="heighlights"> <?php if(function_exists('cphl')) echo cphl(); ?> </div> <!-- heighlighhts --> <?php if (have_posts()) :?> <div id="news"> <div class="ttl color1"/></div> <?php while (have_posts()) : the_post(); ?> <?php $dup = false; foreach(get_option('ucat') as $p){ if ($post->ID == $p->ID) $dup = true; } if($dup) continue; update_post_caches($posts); ?> <div id="post-<?php the_ID(); ?>" class="post"> <div class="pad"> <div class="thumbnails"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> here </a> </div> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <b class="allblack"><i>Posted in <?php the_category(', ') ?> <?php edit_post_link(' - Edit', '', ''); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></i></b> <br /> <small><?php the_time('F jS, Y') ?> by <?php the_author() ?> </small> <div class="entry"> <p> <?php #$mycontent = getWords(get_the_content(), 56); #echo $mycontent." [...]"; the_excerpt(); ?> </p> <a title="Continue reading <?php the_title_attribute(); ?>" href="<?php the_permalink() ?>">Читать Ролностью...</a> </div> </div> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">No posts found. Try a different search?</h2> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_footer(); ?> |
|
|
Neolot |
29.7.2009, 0:53;
Ответить: Neolot
Сообщение
#6
|
|
вот файл индекс. Попробуйте в индексе вместо строки: the_excerpt(); поставить: the_content();
-------------------- Личный блог |
|
|
Eisenberg
|
Сообщение
#7
|
|
опробуйте в индексе вместо строки: Спасибо сработало, фото появилось... ну тут вот ещё одна проблема вышла, вот такой вот квадратик выползает на каждой новости, и не даёт картинке встать полностью влево. Как можно убрать его? <?php global $color; ?> <?php get_header(); ?> <?php get_sidebar(); ?> <div id="heighlights"> <?php if(function_exists('cphl')) echo cphl(); ?> </div> <!-- heighlighhts --> <?php if (have_posts()) :?> <div id="news"> <div class="ttl color1"/></div> <?php while (have_posts()) : the_post(); ?> <?php $dup = false; foreach(get_option('ucat') as $p){ if ($post->ID == $p->ID) $dup = true; } if($dup) continue; update_post_caches($posts); ?> <div id="post-<?php the_ID(); ?>" class="post"> <div class="pad"> <div class="thumbnails"> </a> </div> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <b class="allblack"><i>Posted in <?php the_category(', ') ?> <?php edit_post_link(' - Edit', '', ''); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></i></b> <br /> <small><?php the_time('F jS, Y') ?> by <?php the_author() ?> </small> <div class="entry"> <p> <?php #$mycontent = getWords(get_the_content(), 56); #echo $mycontent." [...]"; the_content(); ?> </p> <a title="Continue reading <?php the_title_attribute(); ?>" href="<?php the_permalink() ?>">Читать Ролностью...</a> </div> </div> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">No posts found. Try a different search?</h2> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_footer(); ?> ещё раз код)) |
|
|
Neolot |
29.7.2009, 16:59;
Ответить: Neolot
Сообщение
#8
|
|
ещё раз код)) Удалите вот это: <div class="pad">
<div class="thumbnails"> </a> </div> -------------------- Личный блог |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Продам базу сайтов Wordpress в 16 миллионов доменов! Свежая сборка. | 19 | Boymaster | 11328 | 20.4.2024, 0:01 автор: Boymaster |
|
Нужен кодер, чтобы пофиксить ошибку Wordpress после переноса сайта | 0 | Alex-777 | 921 | 7.4.2024, 18:05 автор: Alex-777 |
|
Перенос сайта на CMS Wordpress | 8 | freeax | 4974 | 10.3.2024, 14:58 автор: freeax |
|
Как настроить в WordPress для SEO оптимизации | 8 | rownong27 | 2485 | 2.3.2024, 12:59 автор: toplinks |
|
Восстановление сайтов из Вебархива на Wordpress. | 39 | freeax | 32785 | 14.2.2024, 14:32 автор: freeax |
Текстовая версия | Сейчас: 23.4.2024, 20:57 |