• I’m trying to create a Query Loop block variant. Everything seems to work correctly, but when I register it to include blocks inside innerBlocks, the [core/post-terms] block doesn’t return the correct block. It displays with only the text “Post Terms” instead of the post’s categories. The data-type value is listed as “core/post-terms” with a data-title of “Post Terms”.

    When selecting the “Categories” block (not “Categories List”) from the editor, it populates with the categories correctly. The block looks to be the same as the other and has the data-type of “core/post-terms” but the data-title is “Categories” instead of “Post Terms”, so the block seems to be different.

    So the problem is that I don’t have a way to include the correct [core/post-terms] block when registering the block variant. It populates the one with the data-title of “Post Terms”, which doesn’t grab the categories of the post.

Viewing 1 replies (of 1 total)
  • Sara

    (@sarayourfriend)

    @josiahschaefer, can you share the code you’re using to attempt this? That would help for someone else to be able to reproduce the issue and find out whether there’s a solution or potentially a bug.

Viewing 1 replies (of 1 total)
  • The topic ‘WP Post Terms Block’ is closed to new replies.