Clanbite Teams

<!-- wp:clanbite/team-wins /-->

Displays the team’s win count with optional prefix and postfix text.

Dynamic

Block name
clanbite/team-wins
Title
Team wins
Category
clanbite-teams
Post types
clanbite_team
Uses context
postId, postType

Attributes

AttributeTypeDefaultValues
prefixstring''
postfixstring''

Supports

{
    "spacing": {
        "margin": true,
        "padding": true,
        "blockGap": true,
        "__experimentalDefaultControls": {
            "blockGap": true
        }
    },
    "border": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
    },
    "shadow": true,
    "color": {
        "text": true,
        "background": true
    },
    "html": false,
    "layout": {
        "allowSwitching": false,
        "allowInheriting": false,
        "default": {
            "type": "flex",
            "flexWrap": "wrap"
        }
    }
}

Markup

<!-- wp:clanbite/team-wins /-->

Defined in src/blocks/teams/team-wins/block.json