WordPress 3.x para desarrolladores: Temas y plantillas, page.php, sidebar-page.php y content-page.php
Seguimos con más plantillas para nuestro tema. Las dos siguientes son bastante sencillas. PAGE.PHP Creamos el archivo page.php y añadimos el siguiente código: [codesyntax lang=»php»] <?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress
WordPress 3.x para desarrolladores: Temas y plantillas, single.php y comments.php
Vamos con dos plantillas más, esta vez las que generan la página del post (single.php) y la de los comentarios (comment.php). SINGLE.PHP Creamos el archivo single.php y añadimos el siguiente código: [codesyntax lang=»php»] <?php get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <nav id="nav-single"> <h3 class="assistive-text"><?php _e(