Automattic / Automattic/jetpack

Related Posts: Implement _log_click and _previous_post_id in the block

Open
#11,013 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Related Posts [Focus] Blocks [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Quoting @jeherve from https://github.com/Automattic/jetpack/pull/10132#issuecomment-448625933:

> In the old implementation, see `_log_click` and `_previous_post_id` here:
https://github.com/Automattic/jetpack/blob/3283ec371c6e8ed01b3bbf021a5d4f5aac235b1e/modules/related-posts/jetpack-related-posts.php#L130
> Maybe we should do the same thing in the new implementation?

Contributor guide

Open the contributing guide

Research direction

Start by reading modules/related-posts/jetpack-related-posts.php at the linked lines and inspect the related-posts block implementation discussed in pull request #10132. Compare how _log_click and _previous_post_id work in the old implementation; done means the new block provides equivalent behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
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.