This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> | |
| <main> | |
| <section> | |
| <!-- Determinamos si existen publicaciones que mostrar --> | |
| <?php if (have_posts()):?> | |
| <!-- Blucle para mostrar las publicaciones existentes --> | |
| <?php while (have_posts()): the_post() ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> | |
| <main> | |
| <section> | |
| <!-- Determinamos si existen publicaciones que mostrar --> | |
| <?php if (have_posts()):?> | |
| <!-- Blucle para mostrar las publicaciones existentes --> | |
| <?php while (have_posts()): the_post() ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Comprobamos que no exista otra función con el mismo nombre con el que vamos a crear esta | |
| if(!function_exists('temawordpress_setup')){ | |
| //Creamos la función | |
| function temawordpress_setup(){ | |
| // Registramos el menú con la función register_nav_menus | |
| register_nav_menus(array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Determinamos si ya existe la función que vamos a crear, esto para evitar conflictos con funciones del mismo nombre | |
| if (!function_exists('temawordpress_widget_init')){ | |
| //Creamos la función | |
| function temawordpress_widget_init(){ | |
| //Para registrar una barra lateral o area de widgets se utiliza el regiser_sidebar el cual lleva un array con la siguiente información | |
| register_sidebar( | |
| array( | |
| 'name' => __('laterales'), //Nombre de la barra lateral |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> | |
| <!-- Agregamos este código al index --> | |
| <main> | |
| <section> | |
| <!-- Determinamos si existen publicaciones que mostrar --> | |
| <?php if (have_posts()):?> | |
| <!-- Blucle para mostrar las publicaciones existentes --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> |
NewerOlder