WordPress Custom Post Types. Una buena forma de darle a tu contenido el espacio que se merece.

Documentos relacionados
Generar Temas de Colores y Cambiarlos Dinámicamente en ZK

Guía práctica de estudio 11: Funciones

Licencia Pública General GNU

ASPL Fact: Especificación de Requisitos Software

DAW Curso GESTORES DE CONTENIDO

Introducción al desarrollo en WordPress

ESPAÑOL. Manual del usuario. Muchas felicidades por haber adquirido el EasyPad 972! Y gracias también por haberse decidido por un producto EASYPIX!

PELICULAS CLAVES DEL CINE DE CIENCIA FICCION LOS DIRECTORES LOS ACTORES LOS ARGUMENTOS Y LAS ANECD

TU EMBARAZO Y EL NACIMIENTO DEL BEBE GUIA PARA ADOLESCENTES EMBARAZADAS TEEN PREGNANCY AND PARENTI

Apéndice A. GNU LESSER GENERAL PUBLIC LICENCE (traducción)

Contrato de licencia para el usuario final. Producto mobile PRINT & SCAN, versión 1.1

Cartografiando la Galaxia

Servicio de Reclamos Amadeus Guía Rápida

EL PODER DEL PENSAMIENTO FLEXIBLE DE UNA MENTE RAGIDA A UNA MENTE LIBRE Y ABIERTA AL CAMBIO BIBLIOTECA WALTER

HISTORIA DE LAS CREENCIAS Y LAS IDEAS RELIGIOSAS II. DE GAUTAMA BUDA AL TRIUNFO DEL CRISTIANISMO BY MIRCEA ELIADE

El Modelo de Geometrías

Creating your Single Sign-On Account for the PowerSchool Parent Portal

Sesión 5: Wine. Proyecto de formación en centros CEIP Benimamet Valencia

CEFIRE de Valencia Curso Iniciación a Edubuntu Código: 07VA66EA036

WORDPRESS MULTILENGUAJE

Ettercap: Para instalación en ambientes Linux (aunque la mayoría de distribuciones ya las trae instaladas):

Los bloques DLL (Figura A.1) externos permiten al usuario escribir su propio código y

Guacamole HTML5 remote desktop gateway

2.- Desarrollo de Temas

Steps to Understand Your Child s Behavior. Customizing the Flyer

Atutor: una alternativa accesible, usable y abierta para el e-learning y la educación a distancia

Cómo comprar en la tienda en línea de UDP y cómo inscribirse a los módulos UDP

Package RcmdrPlugin.UCA

ETS APPs MATELEC Nuevas Funciones para ETS. Madrid. Casto Cañavate KNX Association International

Curso teórico practico de PHP


gvsig_des_2.x_d: Curso de desarrolladores de gvsig Desktop v 2.x Maven en gvsig Maven en gvsig Novedades de desarrollo en gvsig 2.

Nueva confirmación de pedido de compra con cambios: proveedor ES

La potencia sin control no sirve de nada, claves para aprovechar el uso de WordPress.

Servicio de Reclamos Amadeus Guía Rápida

Anexo G MAPING DE ENCUESTAS

UN ESTIMULO AL MOVIMIENTO DEL SOFTWARE LIBRE

Sesión 5: Instalación de aplicaciones

1 Pequeño Manual de Correspondencia Combinada en Writer 2.0 CCA Universidad de los Andes MANUAL DE CORRESPONDENCIA COMBINADA EN WRITER 2.

Manual de configuración de Replicación Multimaster en servidores Ldap

Español 2-Beginners Tarea del verano (summer homework) Teléfono ext Código para clase de Google una280

AVISO QUE DEBE COLOCARSE EN EL CÓDIGO Y PUEDE MOSTRARSE EN LA EJECUCIÓN DEL PROGRAMA

ASI HABLO ZARATUSTRA UN LIBRO PARA TODOS Y PARA NADIE SPANISH EDITION

Agustiniano Ciudad Salitre School Computer Science Support Guide Second grade First term

Proyecto PLUMA Plataforma Universal Microcontrolada Aplicaciones didácticas e industriales

CORREO ELECTRONICO CON MOZILLA THUNDERBIRD

T.S.U. Leonardo Caballero FUNDACITE-MÉRIDA

Cisco CSS Series Content Services Switches

TECHNOLOGY ENHANCED LANGUAGE LEARNING MODULE Module on Las partes del cuerpo humano

Implementación de un manejador de evento (Event Handler) en Nagios para mantener una conexión PPTP en Windows

CONTROLADORA PARA PIXELS CONPIX

Pistas Separadas TÉRMINOS Y CONDICIONES

Introducción a Plone y Zope. Presentación introductoria sobre Plone y las tecnologías utilizadas, como Zope y Python.

Core Security optimiza decisiones de inversión con CA

MANUAL EASYCHAIR. A) Ingresar su nombre de usuario y password, si ya tiene una cuenta registrada Ó

Manual de Usuario CARGA DE CONTENIDO

LABORATORIO III DE SISTEMAS DE TELECOMUNICACIONES PRÁCTICA N 4 GENERADOR DE TRAFICO SIPp Y PRUEBAS DE TRAFICO

FOR INFORMATION PURPOSES ONLY Terms of this presentation

Synergy Spanish Solutions. Día de San Valentín Audio Lessons

GUIA RÁPIDA DE VNC Antonio Becerro 2005

Los seres vivos/ living things. CONOCIMIENTO DEL MEDIO 3º DE PRIMARIA

Mobile Application Guide Guía de aplicación móvil

Introducción a las tecnologías del movimiento Wikimedia

1) Through the left navigation on the A Sweet Surprise mini- site. Launch A Sweet Surprise Inicia Una dulce sorpresa 2016

The power to control diabetes is in your hands.

UNIT ONE: Vocabulary and grammar-verb To Be. UNIT TWO : grammar; simple present- present progressive

WPeMatico. Wordpress-Plugin

Guapo Using Ser and Tener to Describe People

Instantáneas en VirtualBox

Firmas digitales con GnuPG

VCC-HD2300/HD2300P VCC-HD2100/HD2100P

PRODUCT ASSEMBLY INSTRUCTIONS

PRODUCT ASSEMBLY INSTRUCTIONS

DISENO PAGINAS WEB MAQUETACION PDF

Spanish 3V: Winter 2014

HIGH IMPACT PRESENTATIONS PRESENTACIONES DE ALTO IMPACTO

Matemáticas Discretas, Lógica: Predicados y Cuantificadores

Learning Masters. Fluent: Animal Habitats

Notas del instructor / Instructor s notes:

Título del Proyecto: Sistema Web de gestión de facturas electrónicas.

SEO Lite. Extract the file SEO.zip in the modules folder, so that module files are inside /moules/ seo/.

HTML 5. Que es HTML5 07/04/2011

TEACHER TOOLS: Teaching Kids Spanish Vocabulary. An Activity in 4 Steps

Matemáticas Muestra Cuadernillo de Examen

HISTORIA DE LAS RELIGIONES: EL CRISTIANISMO TOMO 1 BY JUAN B. BERGUA

Fun with infinitives

Anexo E ENCUESTA TESIS - TECNOLOGÍAS DE INTELIGENCIA DE NEGOCIOS

MANUAL DE INSTRUCCIONES CAJA FUERTE CF-4333

CEFIRE: Curso Administración de APACHE

RapidFinder STEC Detection Workflow

Introduction. SER is one of three verbs in Spanish that mean to be. SER has a variety of uses and meanings. SER has an irregular conjugation.

Administración del laboratorio de prácticas

Dolores de cabeza Trabaje con su doctor para evitar las visitas a la Sala de Emergencia

Desde cero a una Distribución Features, Drush Make y Profiler

Autodesk. SketchBook INK. Consejos y Trucos. Android

GNUstep Database Library 2

PRUEBA TIENDA MAGENTO

Mail Disclaimer Versión 1.7.4

Speak Up! In Spanish. Young s Language Consulting. Young's Language Consulting. Lesson 1 Meeting and Greeting People.

Phone Manager Compatibilidad con aplicaciones OCTOBER 2014 DOCUMENT RELEASE 4.1 COMPATIBILIDAD CON APLICACIONES

Transcripción:

WordPress Custom Post Types Una buena forma de darle a tu contenido el espacio que se merece.

Jesus Garcia-Parrado Alameda Mi propósito es ayudarte para que tu negocio brille en internet y se mantenga en el tiempo.

Qué os quiero contar hoy Qué son los Custom Post Types en WordPress. Qué utilidades tienen. Varios casos prácticos.

Tipos de Posts por defecto en WordPress Post (Post Type: 'post') Page (Post Type: 'page') Attachment (Post Type: 'attachment') Revision (Post Type: revision') Custom CSS (Post Type: 'custom_css') Changesets (Post Type: 'customize_changeset')

Tipos de Posts por defecto en WordPress Post (Post Type: 'post') Page (Post Type: 'page') Attachment (Post Type: 'attachment') Revision (Post Type: revision') Custom CSS (Post Type: 'custom_css') Changesets (Post Type: 'customize_changeset')

Un Ejemplo

Custom Post Types Pueden funcionar como posts o como páginas Los podemos organizar por categorías, etiquetas o taxonomías personalizadas. Tienen una página indice aparte y pueden tener una plantilla personalizada para la página índice. Pueden tener todas, ninguna o cualquier combinación de la funcionalidad por defecto para los posts. Podemos recuperar estas entradas desde cualquier lugar utilizando un loop personalizado.

Cómo se implementa un custom post type? Mediante un Plugin Es la solución mas utilizada. Lo puedes utilizar con cualquier theme (plantilla). Lo puedes activar y desactivar independientemente del resto de funcionalidad.

Cómo se implementa un custom post type? Mediante un Theme En implementaciones personalizadas. El contenido depende del theme. Permiten construir funcionalidad avanzada.

Plugin Esta es la función que utilizaremos para dar de alta nuestro custom post type: <?php register_post_type( $post_type, $args );?> https://codex.wordpress.org/function_reference/ register_post_type En está página podéis encontrar toda la información y un ejemplo completo.

Fichero Plugin

Plugin <?php /** * Plugin Name: Lux Courses * Plugin URI: http://luxdesignworks.com * Description: Custom post type to store and handle Lux courses. * Version: 1.0.0 * Author: Jesus Garcia-Parrado Alameda * Author URI: http://luxdesignworks.com * License: GPL3 + */

Plugin /* Copyright 2016 Jesus Garcia-Parrado Alameda This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Plugin function lux_course_init() { $labels = array( 'name' => _x( 'Courses', 'post type general name', 'your-plugin-textdomain' ), 'singular_name' => _x( 'Course', 'post type singular name', 'your-plugin-textdomain' ), 'menu_name' => _x( 'Courses', 'admin menu', 'your-plugin-textdomain' ), 'name_admin_bar' => _x( 'Course', 'add new on admin bar', 'your-plugin-textdomain' ), 'add_new' => _x( 'Add New', 'course', 'your-plugin-textdomain' ), 'add_new_item' => ( 'Add New Course', 'your-plugin-textdomain' ), 'new_item' => ( 'New Course', 'your-plugin-textdomain' ), 'edit_item' => ( 'Edit Course', 'your-plugin-textdomain' ), 'view_item' => ( 'View Course', 'your-plugin-textdomain' ), 'all_items' => ( 'All Courses', 'your-plugin-textdomain' ), 'search_items' => ( 'Search Courses', 'your-plugin-textdomain' ), 'parent_item_colon' => ( 'Parent Courses:', 'your-plugin-textdomain' ), 'not_found' => ( 'No courses found.', 'your-plugin-textdomain' ), 'not_found_in_trash' => ( 'No courses found in Trash.', 'your-plugin-textdomain' ) );

Plugin $args = array( 'labels' => $labels, 'description' => ( 'Description.', 'your-plugin-textdomain' ), 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_icon' => 'dashicons-welcome-learn-more', 'query_var' => true, 'rewrite' => array( 'slug' => 'course' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ), 'taxonomies' => array('category','post_tag') ); register_post_type( 'course', $args ); } add_action( 'init', 'lux_course_init' );

Plugin function lux_rewrite_flush() { lux_course_init(); flush_rewrite_rules(); } register_activation_hook( FILE, 'lux_rewrite_flush' ); } add_action( 'init', 'lux_course_init' );

Lux Courses Custom Post Type Plugin

Lux Courses Custom Post Type

Nuevo Lux Course

Nuevo Lux Course

Indice Lux Courses

Lux Course

Cursos Afectiva

Cursos Afectiva

Cursos Afectiva

Cursos Afectiva

Plugin Relacionado

Informes AGEPEM

Informes AGEPEM

Plugin Relacionado

Plugin Relacionado

Portfolio Lux

!Gracias por vuestra atención @gpjalameda en Twitter Lux Design Works & Love Your Website

Gracias!

Agradecimientos @WPMajadahonda @CowUpCo @HoyStreaming @hostfusion

Preguntas?

Lux Design Works & Love Your Website