• Добрый день!
    У меня на сайте на главной странице находится картинка + текст. Одна тема располагается в нескольких рубриках. Проблема в том, что на главной странице все нормально отображается, а когда заходишь непосредственно в рубрику, то картинка не отображается. Как это исправить?
    Спасибо.
    Сайт:djy.ru — если кому не понятно, можно самому взглянуть.

Просмотр 6 ответов — с 1 по 6 (всего 6)
  • у меня все отображается=)

    У вас либо в шаблоне не прописан вывод картинок для рубрик
    Либо у вас вырезает картинки непосредственно перед выводом

    покажите код шаблона категорий

    Я так понимаю что нужен этот шаблон?

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			/* Run the loop to output the posts.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-index.php and that will be used instead.
    			 */
    			 get_template_part( 'loop', 'index' );
    			?>
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Atrax

    (@atrax)

    Ethical engineer

    На pastebin, пожалуйста…

    Модератор Sergey Biryukov

    (@sergeybiryukov)

    Live and Learn

    Спасибо. Все получилось.

Просмотр 6 ответов — с 1 по 6 (всего 6)

Тема «Нет картинок на страницах.» закрыта для новых ответов.