Descripción
Deprecation Notice
This plugin is no longer in active development.
Please use the next-generation template system, Loops & Logic.
Resumen
Ya sea una campo suelto o una página completa, Custom Content Shortcode es un grupo de comandos para mostrar el contenido de tu página donde lo necesites.
Con el shortcode [content] se pueden mostrar cualquiera de los siguientes elementos: entradas, páginas, tipos de contenido personalizados (CPTs), campos personalizados (postmeta), imágenes, menús y zonas de widgets.
El shortcode [loop] realiza bucles de consultas. Puede, por ejemplo, mostrar los productos de una categoría, o los extractos de los 5 productos más recientes. Las consultas se pueden realizar usando parámetros como: tipo de contenido, taxonomía, fecha, y campos personalizados (postmeta).
Puedes leer la documentación en Ajustes -> Custom Content
Incluído
Here are some of the included features:
- Dispone de un gran número de parámetros para mostrar el contenido de tu página.
- Muestra contenidos en función del valor de un campo, de si el usuario ha iniciado sesión, etc.
- Vista general de la estructura de contenidos de tu página
- Rutas relativas para enlaces e imágenes
- Cachear los resultados de una consulta.
- Opcional: campo de galería, detección de dispositivos móviles, matemáticas
Compatibile con otros plugins: Advanced Custom Fields, WCK Fields and Post Types
Instalación
- Install & activate from Plugins -> Add New
- See: Settings -> Custom Content
Reseñas
Colaboradores y desarrolladores
«Custom Content Shortcode» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Custom Content Shortcode» ha sido traducido a 3 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «Custom Content Shortcode» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
4.0.2
- Restrict shortcodes by constants: DISALLOW_UNFILTERED_HTML and DISALLOW_FILE_EDIT
- Restrict shortcodes by author capabilities: unfiltered_html and edit_plugins/edit_themes
- Add setting to enable shortcodes for non-admin authors (not recommended)
4.0.1
- Correct stable tag in readme.txt
- Use HTTP API instead of CURL
- Use wp_enqueue instead of inline style/script
- Sanitize and escape data input/output
Breaking changes
- Enable certain shortcodes only within posts authored by an admin user
- Remove features that allowed users to load custom CSS/JS
- Load shortcode: css, js, gfonts
- Auto-loaded fields: css, js, html
3.8.8
- Add message about plugin retirement and move to Loops & Logic
- Thanks to @Pross for improvements
- Improve compatibility with PHP 8
- Field shortcode: Improve get_the_excerpt filter
- Test compatibility with WordPress 5.9
3.8.7
- Test compatibility with WordPress 5.7
3.8.6
- Improve getting shortcode function names in Content Overview
3.8.5
- Correct output of ACF field label when multiple choices are selected
3.8.4
- Remove deprecation warning about non-static method CCS_Loop::include_children
3.8.3
- Improve compatibility with PHP 7.2
- Update to Parsedown library 1.7.3 for documentation pages
- Math module: Use variable function call for built-in functions
3.8.2
- Pass: Allow passing user fields that are arrays or objects – thanks to @jrevillini
- Improve compatibility with PHP 5.3
3.8.1
- Compatibility with WP 5.0.2 and PHP 7.2
- Improve support and documentation for shortcodes inside HTML attributes
3.8.0
- [link] – Add parameter download; set «true» or file name
3.7.9
- [if user_field contains] – Support searching multiple user fields
- [related] – Support ACF relational type users
- [related user_field] – Support related posts from a user field
3.7.8
- [if image] – Check correct current post when inside [related]
3.7.7
- [related] – Add parameter offset to skip the first X number of posts
- [if] – Improve logic to count repeater fields
3.7.6
- [each] – Add default field count for each term’s post count
3.7.5
- [if] – Add parameter count for field value array, such as relationship fields
- [if] – Improve field=content,excerpt with parameter contains
- [is] – Allow nested
- Content overview: cleaner list of shortcodes
3.7.4
- [loop], [loopage] – Add parameter query to use custom query variable for pagination
3.7.3
- [user] – Add field registered and parameter format («relative» or custom format)
- Settings – Add option to enable shortcodes in widget title
3.7.1
- [format] – Add parameters split and part; handle field values of number type in list
- [attached] – Add field download-url, to get URL to actual PDF file instead of generated preview image
- [url register] – URL to registration form under wp-login
- [pass] – Add parameter trim=all to remove all white space, new lines, tabs
- ACF [related] – Add parameters start and count
- Improve use of content filter with other plugins; support for Beaver Themer in progress
3.7.0
- Minor fixes in reference pages