Skip to content

example: Fetching data from Multiple WP sites (app router, fetch) #60

@moonmeister

Description

@moonmeister

Description

Create an example on how to setup WordPress multisite with Next.js app router using the fetch api

This is a follow on task from #59 and PR #74

The example should act as a guide/reference to a HWP developer on how to implement multisite setup in Next.js app router using the fetch API.

Key Topics to Cover

WordPress Multisite Setup

  • Example of implementing 2 different WordPress sites into one headless application
  • Demostrate approaches to using different endpoints for the headless appllication to load different WordPress data (e.g. sites 1 or site 2)

Common WordPress Routes

  • Front Page
  • Home
  • Singular (Post and Page)
  • Category & Tag Archive
  • CPT Single & Archive
  • Attachment
  • Search

Rendering

Other Features

  • Pagination
  • WPGraphQL Fragments & Mutations
  • Persisted Queries

Demo

  • Include a wp-env setup so developers can replicate the same WP setup as the example

Target Audience

  • WordPress developers setting up multi-site headless applications.
  • Frontend developers integrating WordPress multi-site into their single headless application.

Metadata

Metadata

Assignees

Labels

topic:clientRelated to GraphQL clients

Type

No type

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions