Automattic / Automattic/jetpack

Related Posts are shown when Related Posts block is grouped in a reusable block

Open
#14,511 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Related Posts [Focus] Blocks [Pri] Low [Status] Auto-allocated [Status] Stale Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue
1. Add the Related Post block into a group and save it as a Reusable block.
2. Insert that Reusable block into a post.

#### What I expected
I expected only one instance of Related Posts to be displayed. When the Related Posts block is inserted as a standalone block or in a group block, the other instance (the one bellow the post) is hidden.

#### What happened instead
Both instances are shown.

**Screenshots**
![related-posts-group](https://user-images.githubusercontent.com/32326882/73363143-ce3cf480-42b0-11ea-9382-bcb51d69ce43.png)

This is only happening when the Reusable block is inserted. When the Related Posts block is inserted individually or added in a group the other instance is hidden. This is the expected behavior.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a Related Posts block grouped and saved as a Reusable block, then insert that reusable block into a post. Compare it with standalone and ordinary group-block cases; done means only one Related Posts instance is displayed in every case.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.