Automattic / Automattic/jetpack

Enhancement: Jetpack Like block - add option to select a post ID

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

Description

### Impacted plugin

Jetpack

### What

It would be useful if the Jetpack Like button had an option to select a post ID for which the like button is rendered. Currently, the Like button automatically associates with the global post ID of the current page. However, there are scenarios where the necessity arises to link the Like button with a different post ID

### How

The proposed modification entails introducing a post selector, enabling users to choose a specific post for which the like button would be displayed. If this option is left unselected, the current global $post will be used, maintaining the default behavior.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Jetpack Like block and its current use of the global $post. Trace how the block chooses the associated post, then verify that an optional post selection uses the chosen ID while leaving the unselected case tied to the current page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.