WordPress plugin that automatically scrapes and imports the weekly featured books
Find a file
2025-07-15 21:41:32 +02:00
includes USe correct post_id to set custom fields 2025-07-15 21:41:32 +02:00
.gitignore Version 1.0.0 2025-07-12 10:25:54 +02:00
importar-libros-epergam.php Fix problems with scrapper 2025-07-15 21:25:39 +02:00
LICENSE Initial commit 2025-07-12 10:22:38 +02:00
README.md Version 1.0.0 2025-07-12 10:25:54 +02:00

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 libro for 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

  1. Upload the plugin to the wp-content/plugins directory.
  2. Activate it from the WordPress admin panel.
  3. 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.