Automattic / Automattic/jetpack
Enhancement: Jetpack Like block - add option to select a post ID
- 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
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