Navigation Link


目录


Add a page, link, or another item to your navigation.

Block Relationships

Parent blocks (direct):
– core/navigation

Allowed inner blocks:
– core/navigation-link
– core/navigation-submenu
– core/page-list

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
label string — Role: content
type string — —
description string — —
rel string — —
id number — —
opensInNewTab boolean false —
url string — Role: content
title string — —
kind string — —
isTopLevelLink boolean — —

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

CSS Selectors

Defined via the selectors property in block.json.

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:navigation-link {"label":"WordPress","url":"https://wordpress.org/"} -->
<!-- /wp:navigation-link -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:29:59 UTC
由 壳壳虫 更新于 2026-10-31 18:30:00 UTC