mirror of
https://github.com/javifercep/importar-libros-epergam.git
synced 2026-09-09 18:38:06 +02:00
WordPress plugin that automatically scrapes and imports the weekly featured books
- PHP 100%
| includes | ||
| .gitignore | ||
| importar-libros-epergam.php | ||
| LICENSE | ||
| README.md | ||
Importar Libros Destacados ePèrgam
This WordPress plugin automatically scrapes and imports the weekly featured books ("Recomanats") from the Catalan school library portal ePèrgam.
Features
- ✅ Registers a custom post type
librofor books. - ✅ Weekly automated scraping of featured books.
- ✅ Downloads and sets book cover images as featured images.
- ✅ Marks imported books as "featured" with metadata.
- ✅ Includes a responsive Swiper.js carousel via
[carrusel_libros]shortcode. - ✅ Resets previously featured books each week.
- ✅ Includes manual trigger for admins via URL.
Installation
- Upload the plugin to the
wp-content/pluginsdirectory. - Activate it from the WordPress admin panel.
- Place the shortcode
[carrusel_libros]on any page or post.
Manual Import Trigger
Access this URL (as admin) to force immediate import:
https://yourdomain.com/wp-admin/?forzar_importar_libros
AI-Generated Notice
This plugin's code was significantly assisted and partially generated using OpenAI's ChatGPT. Manual review and adaptation were performed to ensure it meets WordPress standards and the specific use case.
License
MIT License – free to use, modify, and distribute.