Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/riazahmad0027/travel-blocks/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom Gutenberg blocks for WordPress, built with Secure Custom Fields (free ACF blocks).
Blocks
- Offer Card: photo, title, price, nights, a features list (repeater) and a button.
- Testimonial Card: quote, name, role, photo and an accessible star rating.
How it works
- Each block has its own folder with
block.json, a PHP template (render.php) andstyle.css. - CSS loads only on pages that use the block.
- All output is escaped (
esc_html,esc_url,esc_attr). - The blocks live in a plugin, so they keep working if the theme changes.
Requirements
- WordPress 6.5+
- Secure Custom Fields (or ACF PRO)
Install
- Upload the
travel-blocksfolder towp-content/plugins/. - Activate Travel Blocks.
- Create the field groups (Location: Block is equal to Offer Card / Testimonial Card).