Automattic / Automattic/jetpack

Likes: display like count in post list table, when Likes module is enabled

Open
#38,939 0 comments 0 reactions 0 assignees View on GitHub
[Block] Like [Feature] Likes [Plugin] Jetpack [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

This is a follow-up to #19659.

### Steps to reproduce

1. Start with a site using a block-based theme like Twenty Twenty Four
2. Activate the Jetpack plugin
3. Connect your site to your WordPress.com account
4. Go to Appearance > Editor
5. Insert a Like block somewhere in your single posts template.
6. You'll now be able to Like your posts.
7. Go to Posts > All Posts
* You will not see any indication that you've received Likes there.
8. Now go to Jetpack > Settings > Sharing
9. Enable the Likes module
10. Go back to Posts > All Posts
* You will now see the Likes count

Ideally, when the Like block is used somewhere in the active theme's templates, we should add the column to the post list table, vs. just doing it when the module is active:
https://github.com/Automattic/jetpack/blob/8e9db5858a34c1d29e0e40508d71f7a3c4a0ed3c/projects/plugins/jetpack/modules/likes.php#L245-L248

Contributor guide

Open the contributing guide

Research direction

Start with the likes.php section linked in the issue and review the prior discussion in #19659. Trace how the post list table column is currently added and how active block-based templates can be inspected. Done means the Likes count column appears when the Like block is used in the active templates, without requiring the Likes module to be enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.