With a brand new WordPress website, this (from lib/api.js) now fails:
{ menus(where: {location: PRIMARY}) { nodes { name menuItems { nodes { uri url order label } } } } generalSettings { title url description } }
The workaround is to remove the (where {location: PRIMARY}) from the above AND
From src/SiteNave.astro comment out
{menu.menuItems.nodes.map(menuItem => { return (<li> <a href={menuItem.uri || '/'}>{menuItem.label}</a> </li>) })}
Obviously, this means you temporarily will have no menu until a better solution is provided
With a brand new WordPress website, this (from lib/api.js) now fails:
{ menus(where: {location: PRIMARY}) { nodes { name menuItems { nodes { uri url order label } } } } generalSettings { title url description } }
The workaround is to remove the
(where {location: PRIMARY})
from the above ANDFrom src/SiteNave.astro comment out
{menu.menuItems.nodes.map(menuItem => { return (<li> <a href={menuItem.uri || '/'}>{menuItem.label}</a> </li>) })}
Obviously, this means you temporarily will have no menu until a better solution is provided