Hola quiero que en el index no me aparezca la imagen "no thumbnail" en ningun post y me estoy haciendo un lio, deseo que no aparezca y que lo que escriba aparezca en todo el espacio.
tengo esto en index
Código HTML:
Ver original<?php
/*
Template Name: Index Page
*/
?>
<?php get_header(); ?>
<div id="content" class="content-group content-index"> <div class="post-group append-clear">
<div class="content-title"> <h2><?php echo __('Recent Posts', PADD_THEME_SLUG); ?></h2> <?php get_template_part('loop','index'); ?>
<?php
if (!is_singular()) :
Padd_Theme_PageNavigation::render();
endif;
?>
<?php get_sidebar(); ?>
y esto en loop.php
Código HTML:
Ver original<?php
/**
* The Loop
*
* Section dedicated for rendering the number of posts in which we will expect
* to return at least one or more posts.
*
*/
?>
<?php if (!have_posts()) : ?>
<div id="post-0" class="hentry post error404 not-found"> <h2><?php echo __('Not Found', PADD_THEME_SLUG); ?></h2> <p><?php echo __('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', PADD_THEME_SLUG); ?></p>
<?php else : ?>
<?php
$tag = 'h2';
add_filter('excerpt_length', 'padd_theme_hook_excerpt_index_length');
?>
<?php while (have_posts()) : ?>
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>"
<?php post_class('append-clear'); ?>>
<?php if ('post' == get_post_type()) : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to
<?php the_title_attribute(); ?>">
<?php
$padd_image_def = get_template_directory_uri() . '/images/thumbnail.png';
if (has_post_thumbnail()) {
the_post_thumbnail(PADD_THEME_SLUG . '-thumbnail');
} else {
echo '<img class="image-thumbnail" alt="Default thumbnail." src="' . $padd_image_def . '" />';
}
?>
<<?php echo $tag;?>>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to
<?php the_title_attribute(); ?>">
<?php the_title(); ?></a></<?php echo $tag; ?>>
<?php padd_theme_share_button(); ?>
<?php the_content();?>
<?php endif; ?>
<?php $i = ($i < 4) ? ++$i : 1; ?>
<?php endwhile; ?>
<?php
remove_filter('excerpt_length', 'padd_theme_hook_excerpt_index_length');
?>
<?php endif;
me estoy volviendo loco. un saludo