Linux 软件免费装
Banner图

Swapfeed

开发者 principiante
更新时间 2026年11月13日 00:55
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

post grid load more hide posts not interested personalized feed

下载

1.0.3

详情介绍:

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

安装:

  1. Upload the swapfeed folder to /wp-content/plugins/ or install the zip from Plugins → Add New → Upload.
  2. Activate the plugin.
  3. Add the Swapfeed block to a page, or paste [swapfeed] anywhere shortcodes work.
  4. Adjust defaults in Settings → Swapfeed.

屏幕截图:

  • After dismissing: undo or hide the whole category.
  • The "What readers hide" report.

常见问题:

Where are hidden posts stored?

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/stat only 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.

更新日志:

1.0.3 1.0.2 1.0.1 1.0.0