Content Display block not displaying
-
We recently noticed the Content Display block not showing up on a page and upon further investigation noticed that between revisions of a page edit, block attributes had changed. Specifically:
older revision of the block on the page:
<!-- wp:advgb/recent-posts {"postView":"list","category":"84717","numberOfPosts":100,"columns":1,"displayFeaturedImage":false,"displayAuthor":true,"displayDate":true,"postTextAsExcerpt":true,"postTextExcerptLength":300,"myToken":819,"readMoreLbl":"Read Blog","changed":true} /-->
newest page revision:
<!-- wp:advgb/recent-posts {"postView":"list","categories":[{"id":"84717","name":"Press Releases"}],"numberOfPosts":100,"columns":1,"displayFeaturedImage":false,"displayAuthor":true,"postDate":"created","postTextAsExcerpt":true,"postTextExcerptLength":300,"myToken":819,"readMoreLbl":"Read Blog","changed":true,"category":""} /-->
We’re using a Gatsby front-end and our component that parses the data from the block is expecting to see a value for
category
and it looks like the attribute layout has changed, and now there is a separate array that containsid
andname
instead.Trying to figure out how it got changed – as we haven’t updated the plugin. ˉ\_(ツ)_/ˉ
- The topic ‘Content Display block not displaying’ is closed to new replies.