Linux 软件免费装
Banner图

Solid Post Likes

开发者 oacstudio
conschneider
更新时间 2026年7月16日 05:25
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

like button like likes favorite post likes

下载

1.0.8 1.1.0 1.2.0

详情介绍:

Solid Post Likes adds a customizable like button to your posts, pages, custom post types, WooCommerce products and comments. Zero configuration required — activate, pick your post types and go. The same button likes and unlikes. Visitors can like too (stored anonymized), or restrict liking to logged-in users. Where it shows: Block and shortcodes: Control who likes: Design: For admins: For developers:

安装:

  1. Upload the plugin files to the /wp-content/plugins/solid-post-likes directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Navigate to the new "oacs SPL" main menu item to configure.

屏幕截图:

  • Button style settings: liked and unliked icon, colors, sizes.
  • The like button on a post.
  • The Like Button block in a Query Loop, plus `[oacsspltop]` trending and all-time lists.

升级注意事项:

1.2.0 Like Button block, REST API, trending lists, cookie-based visitor likes and per-like database rows. Existing likes migrate automatically; old data stays untouched as a safety net. 1.1.0 Likes in archives/query loops, logged-in-only mode, most-liked shortcode, admin Likes column, several bug fixes and updated Carbon Fields.

常见问题:

Is there a dislike / thumbs down button?

No. This plugin uses the same button for like and unlike. You can however set different icons for the liked and unliked state.

Can this be used as a voting tool?

Yes. Use [oacsspltop count=10] to show the most-liked posts sorted by likes, and sort the admin post list by the Likes column.

Can I show likes on archive pages or in query loops?

Yes. Enable "Enable Likes in Archives and Query Loops" in the settings. The shortcode then also works in custom loops via do_shortcode( '[oacsspl]' ).

Can I restrict liking to logged-in users?

Yes. Enable "Only Logged-in Users Can Like". The button and count stay visible for visitors; clicking sends them to the login page or a custom URL of your choice.

Does it work with full page caching?

Yes. Enable "Enable full page caching support" in the Developer tab. Buttons then fetch their live state (and a fresh security nonce) on page load.

Is this a favorite tool?

In a limited way. Use [oacsspllist] to show the posts the current user likes, or [oacsspllist user_id=123] for a specific user.

Can I show trending posts?

Yes. [oacsspltop days=7] lists the posts with the most likes recorded in the last 7 days. Likes made before 1.2.0 count towards the post's last like date.

Is there a REST API?

Yes, since 1.2.0. GET /wp-json/spl/v1/likes/<id> returns the count, whether the current visitor liked it, and a nonce. POST /wp-json/spl/v1/likes/<id>/toggle likes/unlikes — authenticate with an Application Password (headless/mobile) or pass the nonce from the GET response. Comments: add ?type=comment.

Does upgrading to 1.2.0 change my data?

Your existing likes and counts are kept. Likes move into a dedicated database table the first time each post is viewed or liked; the old data stays in place untouched as a safety net. One caveat: if you downgrade to 1.1.x and later upgrade again, likes made during the downgrade window are not merged back — the post returns to its pre-downgrade state.

更新日志:

1.2.0 1.1.0 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0