buildHeader(); $html .= '
'; $html .= ' '; $html .= ' Mostrar en tipos de pagina'; $html .= '
'; $showOnHome = $this->renderer->getFieldValue($componentId, '_page_visibility', 'show_on_home', true); $showOnPosts = $this->renderer->getFieldValue($componentId, '_page_visibility', 'show_on_posts', false); $showOnPages = $this->renderer->getFieldValue($componentId, '_page_visibility', 'show_on_pages', false); $showOnArchives = $this->renderer->getFieldValue($componentId, '_page_visibility', 'show_on_archives', true); $showOnSearch = $this->renderer->getFieldValue($componentId, '_page_visibility', 'show_on_search', true); $html .= 'Cards
'; $html .= 'Paginacion
'; $html .= 'Separacion entre cards:
'; $html .= 'Padding interno de card:
'; $html .= 'Margenes de la seccion:
'; $html .= ''; $html .= ' Usa este shortcode para insertar grids de posts en cualquier pagina o entrada. '; $html .= ' Los estilos se heredan de la configuracion de este componente.'; $html .= '
'; // Uso basico $html .= ''; $html .= ' '; $html .= ' Uso basico (9 posts, 3 columnas)'; $html .= '
'; $html .= '[roi_post_grid]';
$html .= ' '; $html .= ' '; $html .= ' Filtrar por categoria'; $html .= '
'; $html .= '[roi_post_grid category="precios-unitarios"]';
$html .= ' '; $html .= ' '; $html .= ' 6 posts en 2 columnas'; $html .= '
'; $html .= '[roi_post_grid posts_per_page="6" columns="2"]';
$html .= ' '; $html .= ' '; $html .= ' Con paginacion'; $html .= '
'; $html .= '[roi_post_grid posts_per_page="12" show_pagination="true"]';
$html .= ' '; $html .= ' '; $html .= ' Filtrar por etiqueta'; $html .= '
'; $html .= '[roi_post_grid tag="tutorial"]';
$html .= ' '; $html .= ' '; $html .= ' Ejemplo completo'; $html .= '
'; $html .= '[roi_post_grid category="cursos" posts_per_page="6" columns="3" show_meta="false" show_categories="true"]';
$html .= ' '; $html .= ' '; $html .= ' Atributos disponibles'; $html .= '
'; $html .= '| Atributo | Default | Descripcion |
|---|---|---|
posts_per_page | 9 | Cantidad de posts |
columns | 3 | Columnas (1-4) |
category | - | Slug de categoria |
exclude_category | - | Excluir categoria |
tag | - | Slug de etiqueta |
author | - | ID o username |
orderby | date | date, title, rand |
order | DESC | DESC o ASC |
show_pagination | false | Mostrar paginacion |
show_thumbnail | true | Mostrar imagen |
show_excerpt | true | Mostrar extracto |
show_meta | true | Fecha y autor |
show_categories | true | Badges categoria |
excerpt_length | 20 | Palabras extracto |
exclude_posts | - | IDs separados por coma |
offset | 0 | Saltar N posts |
id | - | ID unico (multiples grids) |
class | - | Clase CSS adicional |