Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/12/2013, 19:04
shamaka
 
Fecha de Ingreso: noviembre-2010
Mensajes: 116
Antigüedad: 13 años, 4 meses
Puntos: 7
Pregunta El ultimo post en la pagina principal

Hola gente

Bueno me gustaria que me ayudaran con esto;

Quiero que el primer el ultimo post publicado aparezca en la pagina principal como lo hace este sitio: unavidalucida.com.ar

He hecho algunos arreglos pero no me sale

Este es mi index.php (Me han dicho que solo hay modificar eso)

Código PHP:
<?php get_header(); ?>
<?php 
include (TEMPLATEPATH '/tab.php'); ?>    

<div id="content">
<?php if (have_posts()) : ?>
<?php 
while (have_posts()) : the_post(); ?>

<div class="post <?php if (++$counter == 0) { echo "posteven"; }?>" id="post-<?php the_ID(); ?>">

<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&amp;h=200&amp;w=200&amp;zc=1" alt=""/></a>

<div class="box">
<div class="boxtitle">

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
        <span class="author"> Posted by <?php the_author(); ?></span> 
        <span class="comm"><?php comments_popup_link('0 Comment''1 Comment''% Comments'); ?></span>

</div>


<div class="entry">
<p><?php the_content_rss(''TRUE''50); ?> </p>
<a class="read" href="<?php the_permalink() ?>"> Continue </a>
</div>
    
</div>
<div class="clear"></div>
</div>

<?php endwhile; ?>
<div class="clear"></div>
<div id="navigation">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi
() ?>
<?php 
else : ?>
        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','arclite')) ?></div>
        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','arclite')) ?></div>
        <div class="clear"></div>
<?php endif; ?>

</div>

<?php else : ?>
        <h1 class="title">Not Found</h1>
        <p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
Agradezco cualquier ayuda