Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

yoda código en Wordpress

Estas en el tema de yoda código en Wordpress en el foro de WordPress en Foros del Web. Hola, soy novato en esto, no se si mi consulta va en este apartado. Mi idea es insertar post en una pagina estática de Wordpress. ...
  #1 (permalink)  
Antiguo 22/03/2012, 13:28
 
Fecha de Ingreso: marzo-2012
Mensajes: 3
Antigüedad: 12 años, 1 mes
Puntos: 0
Pregunta yoda código en Wordpress

Hola,

soy novato en esto, no se si mi consulta va en este apartado.

Mi idea es insertar post en una pagina estática de Wordpress.

Bien, para ello he instalado este plugin: http://wordpress.org/extend/plugins/list-posts/

Como bien dice, al insertar [[LIST_POSTS]] aparecen todos los post publicados.

Ahora bien, mi intención es que solo aparezcan los de cierta categoría y para ello me dan las siguientes instrucciones pero no tengo ni idea de como formular el código.

Cita:
Installation

1. Upload the list-posts directory to the /wp-content/plugins/ directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Place <!--LIST_POSTS--> or [[LIST_POSTS]] in the HTML view of a page. It will be replaced by the plugin.
4. As of version 1.0, you can specify two items of metadata (Custom Fields) for a given page. This will control what is displayed in the plugin.
5. As of version 1.1, more metadata has been added (Item >= C). You can now specify how many posts are shown (-1 is all of them), and you can now filter for series (from the excellent organize-series plugin).

A. list_posts_include This is a comma-separated list of integers (category IDs), category slugs, or tags; each of which is a tag, category ID or slug. Any posts that claim this category in their taxonomy will be included, unless their category is in list_posts_exclude. If this custom field is defined, then ONLY those categories will be displayed. If it is not specified, then all categories will be displayed.

B. list_posts_exclude This is a comma-separated list of integers (category IDs), category slugs, or tags; each of which is a tag, category ID or slug. Any posts that claim this category/tag in their taxonomy will be excluded. Exclude always overrides include. If you exclude a parent category, you cannot include children categories.

C. list_posts_count A simple integer. If set to 0, then all posts in the filter specified will be displayed (watch out -this could be a lot). If not specified, then the default ('num_posts' option, set to 5 for now).

D. list_posts_series This is a comma-separated list of integers or series slugs, each of which is an organize-series plugin series ID or slug. Any posts that are in this series will be included, unless their category is in list_posts_exclude. If this custom field is defined, then ONLY those series will be displayed. If this field is specified, then list_posts_include is ignored. If the organize-series plugin is not installed and activated, then this will be ignored.
¿Que código debería insertar? Mil graciaswo
  #2 (permalink)  
Antiguo 22/03/2012, 13:46
Avatar de Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Respuesta: yoda código en Wordpress

Creo que te está indicando que en la entrada/página debés usar los custom fields y si, por ejemplo, querés incluir las categorías 3, 4 y 5 necesitás agregar el custom field "list_posts_include" y ponerle de valor: 3,4,5
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP
  #3 (permalink)  
Antiguo 22/03/2012, 14:18
 
Fecha de Ingreso: marzo-2012
Mensajes: 3
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: yoda código en Wordpress

Cita:
Iniciado por Nekko Ver Mensaje
Creo que te está indicando que en la entrada/página debés usar los custom fields y si, por ejemplo, querés incluir las categorías 3, 4 y 5 necesitás agregar el custom field "list_posts_include" y ponerle de valor: 3,4,5
Pero no veo por ningún lado eso de los custum fields, he echado un ojo por google y supuestamente estan cuandoe ditas o creas una página pero nada de nada...
  #4 (permalink)  
Antiguo 22/03/2012, 14:58
Avatar de Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Respuesta: yoda código en Wordpress

En tu vista de editor de página, arriba de todo tenés una pestaña que dice "Opciones de pantalla". Clickeá allí para activar la vista de los "Campos Personalizados" (custom fields).

Con eso activado, deberías ver el metabox para agregar campos personalizados debajo del editor.
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP

Etiquetas: wordpress-plugins
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:10.