Automattic / Automattic/jetpack

Related Posts: Multiple Instances, Single Page

Open
#1,472 3 comments 0 reactions 1 assignee Claimed by @xyu View on GitHub
[Feature] Related Posts Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 14h
Merged PRs (30d)
790

Description

I see it's currently impossible to manually initialize and teardown related posts on the client side and instead have to rely on, at best, shortcode placement. What do you think about reworking related posts a bit to allow frontend init without the shortcode present on load and on the homepage?

The use case for us is as follows:
Our homepage lists posts with excerpts. The user clicks a post triggering an overlay containing the full content of the post. I'd like to be able to initialize Related Posts when the overlay is rendered and teardown Related Posts when the overlay is closed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.