WP Related article floating block


Example: https://www.sboabogados.com/la-justicia-pone-coto-al-abuso-con-los-abogados-como-falsos-autonomos/
Repo: https://github.com/cobianzo/wp-env-sidebar-related-article
Tags: wp-env / wp-scripts (experimental) / PHPUnit / Playwright E2E test / linting (PHPCS WordPress VIP standards, PHPstan, ESlint, Stylelint) / Browser-sync

I’ve developed this block plugin based on recent work for the Daily Mail. In it, the inserted block isn’t displayed in a new row as it normally would be; instead, it’s floated alongside the text (or content).

The block displays a preview of a related article. The options let you choose how the related article is selected. You can manually select the post, or let the system find the most recent one based on the category or tag.