Картинка у поста

Когда у миниатюры поста кликаешь по картинке он перелинковывает на картинку в ориг.размере, а как сделать, чтобы при клике на картинку она открывал пост полностью?

Найти строчку где выводится картинка-миниатюра поста и заменить в ссылке <a href="блаблабла" … на <a href="<?php the_permalink(); ?>" …

Не могу найти, можешь пожалуйста сказать в каком файле?

index.php / category.php

Не могу найти, помоги пожалуйста!

кинь сюда в теге code содержание index.php

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>

И это все???

index.php с главного каталога, например domain.ru/index.php отсюда

index.php с главного каталога, например    domain.ru/index.php     отсюда

Нужен файл index.php из папки с твоим шаблоном WordPress.

<?php
/**
 * @package WordPress
 * @subpackage Vermillon
 */

get_header(); ?>

<div id="content">

<?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            <div class="post-infos"><?php the_time(__('F jS, Y', 'my-tapestry')) ?></div>
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'my-tapestry'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
            <?php the_content(__('Continue reading', 'my-tapestry').' &rarr;'); ?>
            <div class="post-infos"><?php _e('By', 'my-tapestry'); ?> <?php the_author() ?> &bull; <?php _e('Posted in', 'my-tapestry'); ?> <?php the_category(', ') ?> &bull; <?php comments_popup_link(__('No Comment', 'my-tapestry'), __('1 Comment', 'my-tapestry'), __('% Comments', 'my-tapestry')); ?> <?php edit_post_link(__('Edit', 'my-tapestry'), '&bull; ', ''); ?></div>
        </div>

    <?php endwhile; ?>
    
    <?php if(show_posts_nav()): ?>
    <div class="navigation clear">
        <div class="left"><?php next_posts_link('&larr; '.__('Older Entries', 'my-tapestry')) ?></div>
        <div class="right"><?php previous_posts_link(__('Newer Entries', 'my-tapestry').' &rarr;') ?></div>
    </div>
    <?php endif; ?>

<?php else : ?>

    <h2><?php _e('Not Found', 'my-tapestry'); ?></h2>
    <p><?php _e("Sorry, but you are looking for something that isn't here.", 'my-tapestry'); ?></p>
    <?php get_search_form(); ?>

<?php endif; ?>

</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Этот?

И я тоже не ощутил в нём никаких изображений.
Видимо нужно по всей теме шарить (category, functions проверять)…

Может скину ссылку на тему, сможешь посмотреть?

Кидай.

http://wpface.ru/business/theme/577.html

Попробуйте так:
файл image.php
17 строка

<p><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>

махнуть на

<p><a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>

Не помогло!(

Anonymous
Отправить
Ответ на: