Wp-calypso: Related Posts Block: Rendered as Grid even if set to List Mode

Created on 28 Dec 2018  路  3Comments  路  Source: Automattic/wp-calypso

Reported at p1HpG7-64l-p2 #comment-29600:

No matter what settings I set, I could not get List View to work. Always showed my posts in Grid View after publishing. Same results in Preview.

Steps to reproduce

  1. In the block editor, start a new post, and insert a Related Posts block.
  2. In the block toolbar, set it to list mode.
  3. Publish the post and view it.

What I expected

The block to be rendered in list mode.

What happened instead

The block was rendered in grid mode.

Screenshot / Video

image

Context / Source

I've verified that the correct class is applied on the frontend (.jp-relatedposts-list). I think the stylesheet's selectors aren't working since they require an element with ID #jp-relatedposts wrapped around Related Posts. (ID based styling probably isn't a good idea here -- or anywhere really -- anyway.)

Related Posts [Goal] Gutenberg [Pri] High [Type] Bug

Most helpful comment

All 3 comments

Seems like we don't handle lists on WP.com the same way we do for Jetpack. Will work on a fix.

Both of the above have been merged, and on production things are now looking well. Closing.

Was this page helpful?
0 / 5 - 0 ratings