Beskrivelse
Big platforms let people say “not interested”. Your site can too.
Swapfeed shows your posts as a clean card grid. Every card has a Not for me button. When a reader clicks it, the card disappears and another post slides into its place — the feed refills itself. After dismissing, the reader can also hide everything from that category with one click, or undo.
We call this pattern Dismiss & Refill: a self-curating feed that each reader shapes for themselves — the “not interested” / “show less like this” experience of Google Discover and YouTube, on your own WordPress site.
Use it for a personalized post feed, a blog index, a news grid, a portfolio, real estate listings or WooCommerce products.
Live demo: mariof.es/en/swapfeed. A working feed you can dismiss and refill.
Features
- Shortcode
[swapfeed]and a Swapfeed block for the block editor. - Works with any theme: inherits your fonts, uses your accent colour.
- Posts, pages or any public custom post type; filter by category or tag.
- Optional category filter buttons above the feed.
- “Hide everything from this category”, Undo and Show hidden built in.
- “Load more” button with infinite scroll after the first click.
- Lightweight: one small script and stylesheet, loaded only where a feed is shown. No jQuery.
- Private by design: what a reader hides is stored only in their own browser. No accounts, no tracking cookies.
- What readers hide report: anonymous totals per category and the most dismissed posts, so you know what your audience doesn’t want (can be switched off).
- Translation ready (translations are managed on translate.wordpress.org).
Skærmbilleder



Blokke
Dette plugin giver 1 blok.
- Swapfeed
Installation
- Upload the
swapfeedfolder to/wp-content/plugins/or install the zip from Plugins Add New Upload. - Activate the plugin.
- Add the Swapfeed block to a page, or paste
[swapfeed]anywhere shortcodes work. - Adjust defaults in Settings Swapfeed.
FAQ
-
In the reader’s browser (localStorage). They stay hidden on that device until the reader clicks “Show hidden” or clears site data.
-
Does it work with page caching?
-
Yes. The page is cached as usual; dismissing and refilling happen in the browser through the WordPress REST API.
-
Is the report GDPR friendly?
-
The report stores only anonymous daily totals per category and per post. No IP address, cookie or identifier is stored. A salted hash of the IP is kept for one hour only to limit abuse, then it expires.
-
Why are there public REST endpoints?
-
/wp-json/swapfeed/v1/items returns the same public post data that is already on the page (title, link, image, excerpt), so the feed can refill dismissed slots without reloading.
/wp-json/swapfeed/v1/statonly accepts an action (dismiss / undo), a post ID and a term ID, validates that the post is published, and is limited to 120 events per hour per visitor. It can be switched off in Settings Swapfeed. -
Shortcode options?
-
count,
columns,post_type,category,tag,exclude,offset,filters,image,excerpt,date,term,allow_term,title. Example:[swapfeed count="9" columns="3" category="news" filters="yes"]. Full list in Settings Swapfeed How to use.
Anmeldelser
Der er ingen anmeldelser for denne widget.
Bidragsydere & udviklere
“Swapfeed” er open source-software. Følgende personer har bidraget til dette plugin.
BidragsydereOversæt “Swapfeed” til dit eget sprog.
Interesseret i udvikling?
Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.
Ændringslog
1.0.3
- Translations are now handled by translate.wordpress.org; bundled language files removed.
1.0.2
- New filter
swapfeed_taxonomyto choose the taxonomy used for labels, filter chips and “Hide everything from…” (e.g. a city taxonomy for real-estate listings).
1.0.1
- New filter
swapfeed_js_configso multilingual plugins can localise the REST URLs and labels. - Correct translation files (.mo) for every WordPress version.
- Buttons ignore themes that force uppercase.
1.0.0
- First release.
