How airesvsg/to-do-list-acf-to-rest-api works
Project type and purpose
• This is a lightweight WordPress theme or plugin customization that provides a simple “To-Do List” interface. It uses Advanced Custom Fields (ACF) to model to-do items in the WordPress admin and exposes them via the WP REST API (with the “ACF to REST API” plugin). On the front end, a single page (index.php) fetches, displays, and manipulates to-do entries using JavaScript.
File structure
• Top-level PHP templates and logic:
• functions.php – registers theme support/hooks into WP, enqueues scripts/styles, possibly adds REST extensions
• acf-fields.php – defines the ACF field group (“To-Do Item”, status, label, etc.) and ties them to the REST API
• header.php / footer.php – theme wrappers around the page content
• index.php – front-end template that renders the to-do list container and loads script.js
• Static assets:
• script.js – front-end logic that calls the WP REST API to GET, POST, PUT, DELETE to-do items
• style.css – basic styling for the list UI
• README.md – confirms use of WordPress ≥4.7, ACF, and ACF to REST API plugin
README for additional insights
• Confirms primary dependencies:
• WordPress core REST API
• Advanced Custom Fields (ACF)
• ACF to REST API plugin
Final advice
• Flow of data for each operation (View list, Add item, Update item, Delete item).
• Components from the file tree (functions.php, acf-fields.php, script.js, etc.) are represented in the appropriate layer.