Este es el Index raíz de wordpress
Código 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');
?>
Y este es el de la plantilla
Código PHP:
<?php get_header(); ?>
<div id="post-entry">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post-meta" id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="post-author"><?php _e('Escrito Por'); ?> <?php the_author_posts_link(); ?> <?php _e('En'); ?> <?php the_time('F j Y') ?> <?php edit_post_link('edit'); ?><? if (!is_single()){ ?> <li class="Comments"><a href="#"><?php comments_popup_link(__('No hay Comentarios'), __('1 Comentario'), __(' % Comentarios '), 'commentslink', __('Comments off')); ?></a></li><? } ?></div>
<div class="post-content">
<?php the_excerpt(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" style="font-style:italic;" title="Permanent Link to <?php the_title(); ?>">Continuar Leyendo...</a>
</div>
<?php include (TEMPLATEPATH . '/social.php'); ?>
</div>
<?php endwhile; ?>
<?php /* comments_template() */ ?>
<?php include (TEMPLATEPATH . '/paginate.php'); ?>
<?php else: ?>
<h2>Sorry The Post You Are Looking For Had Been Deleted</h2>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>