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 id="content-pad"> <div class="post-group append-clear"> <div class="content-title"> </div> <?php get_template_part('loop','index'); ?> <?php if (!is_singular()) : Padd_Theme_PageNavigation::render(); endif; ?> </div> </div> </div> <?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"> <div class="title"> </div> <div class="content"> </div> </div> <?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()) : ?> <div class="thumbnail"> <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 . '" />'; } ?> </a> </div> <div class="title"> </div> <div class="excerpt"> <?php padd_theme_share_button(); ?> <?php the_content();?> </p> </div> <div class="meta"> <p> </p> </div> </div> <?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