WordPress plugin intelligence profile

Network Template Parts

Render template parts in a site or network context.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.7
Current version1.0.4
WordPress coverageTested up to WordPress 6.7
Minimum stackWP 6.3 · PHP 7.4
Directory statusactive
Last directory update6 Nov 20241y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Network Template Parts version 1.0.4 as active, updated 1y ago and tested up to WordPress 6.7.

Overview

About this plugin

When managing a brand across many sites, it is often necessary to ship changes to the look and feel with the certainty that they will be applied immediately.

In its current iteration, the WordPress site editor allows individual site administrators to make changes to a theme’s templates and template parts. Once a template or a template part has been edited on an individual site, it no longer receives updates from the theme automatically, which may in turn cause unintended consequences.

This plugin provides a way for site administrators to edit parts of the site without accidentally overwriting pieces that should remain consistent.

Network Template Parts works in tandem with Restrict Network Templates, which restricts the editing of templates on individual sites.

Assumptions

Templates provided by the theme should not be edited.

A theme’s core structure is defined by templates. g. html )

It should be possible to set a structure in these templates and assume that they will not be overridden on individual sites.

Network-level template parts are managed by network administrators.

Parts of a theme’s structure rely on data from the main site on a network. g. global navigation)

It should be possible for a template to specify that a section of a page is rendered in the context of the main site.

Site-level template parts are managed by site administrators.

Parts of a theme’s structure rely on data from individual sites on a network. g. site navigation, content)

It should be possible to override site-level template parts from an individual site.

Block

The Network Template Part block renders a selected template part in either a “site” or “network” context.

Attributes:

  • slug determines which template part to load. Template parts are located in a theme’s parts/ directory.
  • context determines the context in which the part should render.

Examples

Often, a network will provide common header and footer areas while leaving the site content between to site administrators. With Network Template Parts, this can be accomplished as so:

html file may contain:

-- wp:ntp/network-template-part {"slug":"footer","context":"network"} /-->

>

html from the main site on the network.

html file main contain:

-- wp:ntp/network-template-part {"slug":"header-main","context":"network"} /-->

>

This defines two areas in the header to be managed at the network level. html may contain something like:

-- /wp:group -->

>

html.

Now, an individual site administrator can make changes to a navigation menu while also receiving updates from the theme and the network if the look and feel of the broader network changes.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • site editor
  • multisite
  • templates
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.7
Minimum requirementsWordPress 6.3 · PHP 7.4
Update activity6 Nov 20241y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.