Save any post, map it, share it.
Like & Save gives visitors a bookmark toggle via a Gutenberg block or shortcode — a per-visitor saved list with metadata snapshots, shareable trip plans, and a ready-to-map Leaflet integration.
replace with <img>
One save button, six reasons to use it.
Like & Save is built to stay lightweight now and grow with your mapping and export workflows.
Block & shortcode
Add a Save button anywhere with the like-and-save/button block or the shortcode — semantic buttons with aria-pressed.
Works for everyone
Logged-in users save to user meta; guests get a cookie-token list in options — merged into their account automatically on login.
Saved Items Manager
A front-end table to view, remove, and clear items — with CSV and JSON export, plus role-aware shortcodes for table and plans.
Trip Plans & sharing
Logged-in users build named plan itineraries and share unlisted links — anyone can view and copy the plan into their own list.
Query Loop variation
A built-in “Saved posts (Like & Save)” Query Loop variation lets you design saved-items loops with core blocks in FSE.
Map-ready & analytics
Each save snapshots mapping meta (lat/lng) for No saved items found yet., while admin analytics split clicks by logged-in vs guest.
About Like & Save
Like & Save provides a lightweight save/bookmark system for WordPress content. Visitors toggle a Save button from a Gutenberg block or shortcode, and the plugin stores a per-visitor list with an extensible metadata snapshot per item — ready for future mapping, exports, and filtering.
It works for logged-in users and guests alike, adds shareable Trip Plans and a Saved Items Manager, and ships a REST API plus filter/action hooks so it can grow into custom tables and richer analytics.
Good for
- Bookmark or “save for later” buttons on posts and custom post types
- Trip-planning sites with named itineraries and shareable links
- Saved-items maps powered by Steve’s Leaflet Map
- Logged-in vs guest engagement insights from click analytics
Like & Save provides a lightweight, extensible “save / bookmark” system for WordPress content with a clean foundation for future mapping and exports.
Core capabilities / features:
- Gutenberg block: Insert a Like & Save button anywhere in your content (block name: like-and-save/button).
- Shortcode: Use [like_and_save] to render the same button in classic contexts.
- Saved items manager (front-end): Use [like_and_save_manager_table] (table/empty + controls) and [like_and_save_manager_plans] (plans UI).
- Trip Plans (logged-in): Logged-in users can create named plans (simple itineraries) containing post IDs.
- Shareable Plans (unlisted links):
- In the Plans UI, logged-in users can click Share to generate an unlisted link.
- Anyone with the link can view the plan (read-only) and click Copy this plan to copy the items into their own saved list (works for guests too).
- Built so it can later support “public plans” / SEO pages.
- Instant cross-UI sync (no refresh):
- Removing from the Saved Items Manager instantly updates:
- the Save button state (heart toggles back immediately)
- and any saved-items map/list UI (when used with Steve’s Leaflet Map integration)
- This is event-driven (no polling / no MutationObserver scanning).
- FSE / Query Loop integration: Adds a Query Loop variation “Saved posts (Like & Save)” so you can design a saved-items loop using core blocks.
- Visitor-safe storage:
- Logged-in users store saved items in user_meta.
- Guests store saved items in options keyed by a guest identity token (cookie-based; stored with autoload = no).
- Metadata snapshotting (mapping-ready):
- Upload the like-and-save folder to the /wp-content/plugins/ directory (or install via zip).
- Activate the plugin through the Plugins menu in WordPress.
- Add the block or shortcode to your content.
Saved Items Manager (Shortcode)
(Also includes Plans for logged-in users, plus a Share button for generating unlisted plan links.)
Create a page like “Saved” and add:
- Table/empty + controls only: [like_and_save_manager_table]
- Plans only: [like_and_save_manager_plans]
This renders a front-end management UI for the current visitor:
- View saved items (title, type, saved date) — via the table/empty UI
- Remove an item
- Clear all
- Export CSV (downloads saved-items-(DATE).csv)
- Export JSON (downloads like-and-save-items.json)
- Manage Trip Plans (create/select/share/delete) — via the plans UI
Ordering guarantee: When you place [like_and_save_manager_table] followed by [like_and_save_manager_plans], the Trip Plans always appears below the table/empty section (and controls stay with the table/empty section).
Works for logged-in users and guests (each visitor sees/manages their own list).
Query Loop (FSE) — “Saved posts (Like & Save)”
In the Site Editor (FSE) or block editor:
- Insert a Query Loop block.
- Choose the variation: Saved posts (Like & Save).
- Design it like any Query Loop (Post Template, Title, Featured Image, Excerpt, etc.).
Under the hood, the plugin rewrites the Query Loop query to post__in the current visitor’s saved IDs.
Gutenberg Block
In the block editor:
- Open the inserter.
- Search for Like & Save (block name: like-and-save/button).
- Insert it into the post/page content.
- (Optional) Set a custom label or override Post ID in the inspector sidebar.
Shortcode
Basic:
[like_and_save]
With explicit post ID:
- = 0.1.0 =
- * Initial release: shortcode + block, REST endpoints, visitor storage with snapshot payload.
- * Admin settings for snapshot meta keys + default label.
- * Admin-only analytics: server-side click totals split by logged-in vs guest, slug-keyed, with reset button.
- = Unreleased =
- * Enhancement: Analytics dashboard — day-of-week and hour-of-day cards now compare against the previous period (grouped bars + delta chips, dashed overlay line, tooltip "previous period" counts), with a legend key (Current period / Previous N days) on both cards and a "Compare to previous N days" toggle that shows/hides all comparison elements (shown by default) and remembers the choice per browser.
- * Enhancement: Analytics dashboard Phase 2 — hover/focus tooltips with exact counts on the daily chart, KPI “vs previous N days” deltas plus an “Avg / day” card, a Top posts bar chart (inline SVG), a day-of-week + hour-of-day interaction breakdown with peak highlights, a previous-period dashed-line overlay on the daily chart, and an optional weekly email digest (Settings → Like & Save → Weekly email report). Export gained two datasets: “By day of week” (week) and “By hour of day” (hour).
- * Feature: Global saved indicator improvements (count badge, pulse-on-click, optional link URL, accessible label includes count, and low-overhead localStorage cache to reduce REST calls).
Ready to let visitors save?
Free, GPL-licensed bookmarking for WordPress — save buttons, trip plans, and maps for every visitor.












