Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/07/2014, 12:59
Avatar de paxarin
paxarin
 
Fecha de Ingreso: enero-2010
Ubicación: Santander
Mensajes: 413
Antigüedad: 14 años, 2 meses
Puntos: 6
Respuesta: Mostrar las publicaciones de un wordpress en una página web

Cita:
Iniciado por metacortex Ver Mensaje
Suponiendo que tu blog se encuentre en el directorio /blog/

Código PHP:
Ver original
  1. <?php
  2. include 'blog/wp-load.php';
  3.  
  4. $consulta = new WP_Query('tus parámetros...');
  5.  
  6. if( $consulta->have_posts() ):
  7.     while( $consulta->have_posts() ):
  8.         $consulta->the_post();
  9. ?>
  10.         <h3><?php the_title() ?></h3>
  11.         <p><?php the_content() ?></p>
  12. <?php
  13.     endwhile;
  14.     wp_reset_postdata();
  15. else:
  16. ?>
  17.     <p>No hay entradas</p>
  18. <?php endif; ?>
Perdona mi ignoracia, pero a que te refieres con "TUS PARAMETROS"
__________________
http://www.paxarindesign.es