Title: Solid Post Likes
Author: oacstudio
Published: <strong>2021 年 2 月 9 日</strong>
Last modified: 2026 年 7 月 15 日

---

搜尋外掛

![](https://ps.w.org/solid-post-likes/assets/banner-772x250.png?rev=3609380)

![](https://ps.w.org/solid-post-likes/assets/icon.svg?rev=3609380)

# Solid Post Likes

 由 [oacstudio](https://profiles.wordpress.org/oacstudio/) 開發

[下載](https://downloads.wordpress.org/plugin/solid-post-likes.1.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/solid-post-likes/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/solid-post-likes/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/solid-post-likes/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/solid-post-likes/#developers)

 [技術支援](https://wordpress.org/support/plugin/solid-post-likes/)

## 外掛說明

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:**

 * All post types, selectable per post type.
 * Single posts, and optionally archives, search results and query loops.
 * WooCommerce products — all product types (Subscriptions, Bookings, …).
 * Post comments, also on custom post types.
 * Anywhere you want via shortcode.

**Shortcodes:**

 * `[oacsspl]` — the like button. Arguments: `post_id`, `counter=off` to hide the
   count for that instance.
 * `[oacsspltop count=5 post_type=post]` — the most-liked posts, with counts.
 * `[oacsspllist]` — the posts the current user likes.
 * `[oacs_spl_profile]` — same list, table style.

**Control who likes:**

 * Visitors can like (IP-based, anonymized — the stored address always ends in .
   0).
 * Or logged-in users only: the button and count stay visible, clicking sends visitors
   to the login page (or a custom URL).
 * One-way likes: optionally disable unliking to prevent accidental removals.

**Design:**

 * 29 icons for the liked and unliked state, individually selectable.
 * Custom text for like and unlike.
 * Color, size and padding controls for icon, text and counter.

**For admins:**

 * Sortable “Likes” column on the post list of every enabled post type.
 * Liked posts shown in the backend user profile.
 * Set or reset like counts manually.
 * Disable likes per post ID.

**For developers:**

 * Place the button via your own theme hook (posts and WooCommerce separately).
 * `before_oacs_spl_button` / `after_oacs_spl_button` filters for custom content
   around the button.
 * Full page cache support: like state and counts load via Ajax, including a fresh
   nonce, so cached pages keep working.

## 螢幕擷圖

[⌊General settings.⌉⌊General settings.⌉[

General settings.

[⌊Like icon settings.⌉⌊Like icon settings.⌉[

Like icon settings.

## 安裝方式

 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.

## 常見問題集

### 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.

## 使用者評論

![](https://secure.gravatar.com/avatar/9bb0c51c5c50ffa96f1c2a64b77de8390e32779dc2b83b36331449c7c3b45c5a?
s=60&d=retro&r=g)

### 󠀁[Good Plugin](https://wordpress.org/support/topic/good-plugin-7056/)󠁿

 [Dipto Nath](https://profiles.wordpress.org/diptonath/) 2025 年 2 月 13 日

Hello,It works good. Is there any option when user login to like the post. (Only
login user like post)

![](https://secure.gravatar.com/avatar/44404518ffb74a6930f226d8b3ab8ad95799272c28e8ea62a093aad1931be606?
s=60&d=retro&r=g)

### 󠀁[Superb support from these developers](https://wordpress.org/support/topic/superb-support-from-these-developers/)󠁿

 [aseverirene](https://profiles.wordpress.org/aseverirene/) 2024 年 2 月 15 日 1
則留言

Asked for help and within one day, the brilliant answer came through. I am ever 
so pleased!!

![](https://secure.gravatar.com/avatar/d14b06733f76c900322264e70aa5e45cb1400cb6b49f20632338475c84392d22?
s=60&d=retro&r=g)

### 󠀁[Support shortcode, easy to use](https://wordpress.org/support/topic/support-shortcode-easy-to-use/)󠁿

 [rockthan](https://profiles.wordpress.org/rockthan/) 2023 年 12 月 18 日 1 則留言

Very easy to use, it supports shortcodes too.

![](https://secure.gravatar.com/avatar/0d392c790840eb67a61663854f0e5c8e53e1eb5d53e6f64078dd35b40f697abd?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin and fantastic support](https://wordpress.org/support/topic/excellent-plugin-and-fantastic-support-20/)󠁿

 [Xaifu](https://profiles.wordpress.org/xaifu/) 2023 年 9 月 10 日

I had looked for many similar plugins but it seems that nowadays they are not as
common as they were years ago. Finally, I came across this one that fulfilled all
the needs I required.It is easy to use, elegant and GDPR compliant. I highly recommend
it!

![](https://secure.gravatar.com/avatar/2a3e8938f57d14ccac8e66606addb447a6df2e8ba9defca9e6920fd40614f2cc?
s=60&d=retro&r=g)

### 󠀁[Excellent and customisable](https://wordpress.org/support/topic/excellent-and-customisable/)󠁿

 [simonclay](https://profiles.wordpress.org/simonclay/) 2023 年 1 月 18 日 1 則留言

An excellent plugin. I implemented it into an Elementor Single Post and Post Loop
template with relative ease because of the many options available.The ‘Full Page
Caching support’ option is great too as I, like many use caching on my sites.

![](https://secure.gravatar.com/avatar/a21f20098d73407fb122a8f101b1e63750d71cfdef55bc1e9f51f6ec12c33044?
s=60&d=retro&r=g)

### 󠀁[Very good plugin and really fast support](https://wordpress.org/support/topic/very-good-plugin-and-really-fast-support/)󠁿

 [andreylyapin](https://profiles.wordpress.org/andreylyapin/) 2022 年 7 月 12 日
1 則留言

Simple and fast plugin, easily customizable. Just what I needed for my blog. And
when there were small problems after the update, support responded in a matter of
hours and the problem was solved. Thumbs up!

 [ 閱讀全部 8 則使用者評論 ](https://wordpress.org/support/plugin/solid-post-likes/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Solid Post Likes〉的開發相關工作。

參與者

 *   [ oacstudio ](https://profiles.wordpress.org/oacstudio/)
 *   [ con ](https://profiles.wordpress.org/conschneider/)

[將〈Solid Post Likes〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/solid-post-likes)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/solid-post-likes/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/solid-post-likes/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/solid-post-likes/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/solid-post-likes/)。

## 變更記錄

#### 1.1.0

 * New: Enable Likes in Archives and Query Loops setting — buttons on archive pages,
   search results and custom query loops.
 * New: Only Logged-in Users Can Like setting with optional custom login URL — visitors
   see the button and count, clicking sends them to the login page.
 * New: Disable Unlike setting — one-way likes, prevents accidental unlikes.
 * New: `[oacsspltop]` shortcode — list the most-liked posts (`count`, `post_type`,`
   show_count` attributes).
 * New: `counter=off` attribute on `[oacsspl]` — hide the counter per instance.
 * New: sortable “Likes” column on the admin post list of every enabled post type.
 * Fix: fatal error `count(): Argument #1 ($value) must be of type Countable|array`
   when a like targeted an invalid post or comment ID.
 * Fix: the “Set Like Position via Hook” developer setting for WooCommerce was never
   applied due to a variable typo.
 * Fix: the “Set Like Position via Hook” developer setting for posts printed escaped
   markup instead of the button.
 * Fix: liking without JavaScript showed raw JSON instead of returning to the post.
 * Fix: cache support now refreshes post buttons too (previously only comment buttons)
   and delivers a fresh nonce, so likes keep working on pages served from a long-
   lived full page cache.
 * Fix: the “You Like” lists could include posts liked by a different user whose
   ID contains the same digits.
 * Fix: `[oacsspllist]` printed broken list markup and queried with user ID 0 for
   visitors — visitors now get a login hint.
 * Fix: script/style cache busting used a stale internal version number.
 * Updated Carbon Fields to 3.6.9 (PHP 8.2+ and current WordPress compatibility).
 * Text domain changed to `solid-post-likes` so translations can be delivered via
   wordpress.org language packs.

#### 1.0.8

 * Fix: Shortcode like list outputted in header in some cases.
 * Fix: Add none to post type setting to allow shortcode usage only.

#### 1.0.7

 * Fix: Shortcode like button outputted in header in some cases.
 * Fix: Attempt to read property “ID” on int notice on like list.

#### 1.0.6

 * Add priority to comment_text to fix deprecated message.
 * Renamed CSS class to spl-is-active
 * Likes can now be set to zero via the settings.
 * Fix: Undefined Variable post.

#### 1.0.5

 * Update Carbon Fields.
 * Fix individual comment like.

#### 1.0.4

 * Fix: array_key_exists on int error occuring on some systems.

#### 1.0.3

 * Fix: Undefined index: post_id
 * Fix: Trying to access array offset on value of type int

#### 1.0.2

 * Add post_id as [oacsspl] shortcode argument. You can now use [oacsspl post_id
   =123] to show post likes of post with the ID = 123. Fallback post_id value is
   the current post ID.

#### 1.0.1

 * Fix [oacsspl] output by replacing escape function.

#### 1.0

 * Initial release.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **1 小時前**
 *  啟用安裝數 **500+**
 *  WordPress 版本需求 ** 5.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/solid-post-likes/)
 * 標籤:
 * [favorite](https://tw.wordpress.org/plugins/tags/favorite/)[like](https://tw.wordpress.org/plugins/tags/like/)
   [like button](https://tw.wordpress.org/plugins/tags/like-button/)[likes](https://tw.wordpress.org/plugins/tags/likes/)
   [post likes](https://tw.wordpress.org/plugins/tags/post-likes/)
 *  [進階檢視](https://tw.wordpress.org/plugins/solid-post-likes/advanced/)

## 評分

 4.9 星，滿分為 5 星

 *  [  7 個 5 星使用者評論     ](https://wordpress.org/support/plugin/solid-post-likes/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/solid-post-likes/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/solid-post-likes/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/solid-post-likes/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/solid-post-likes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/solid-post-likes/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/solid-post-likes/reviews/)

## 參與者

 *   [ oacstudio ](https://profiles.wordpress.org/oacstudio/)
 *   [ con ](https://profiles.wordpress.org/conschneider/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/solid-post-likes/)