You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you cannot save a post-format in navigation editor. It is very much related to #31380.
Essentially we are storing an non-numeric object_id because the REST API endpoint returns non-numeric IDs for post-format search results.
As per the existing menus screen we should store the taxonomy term ID (which backs the post-format) as the object_id for nav_menu_items.
To do this we need to make sure the /v2/search endpoint returns the term ID for us to work with. See #31380 which shows what the REST API currently returns.
How to replicate
This takes a bit of setup:
Activate a theme that supports post-formats, like Twenty Thirteen
Create some posts that use a post format like quote or gallery
Enable the navigation editor and create a new menu
Insert a post-format link (points to the post format archive). Note that this should be using the post-format variation:
post.format.mp4
A custom link works out okay but we should avoid the 500 here:
Currently you cannot save a post-format in navigation editor. It is very much related to #31380.
Essentially we are storing an non-numeric
object_id
because the REST API endpoint returns non-numeric IDs for post-format search results.As per the existing menus screen we should store the taxonomy term ID (which backs the post-format) as the
object_id
for nav_menu_items.To do this we need to make sure the
/v2/search
endpoint returns the term ID for us to work with. See #31380 which shows what the REST API currently returns.How to replicate
This takes a bit of setup:
post.format.mp4
A custom link works out okay but we should avoid the 500 here:
Originally posted by @gwwar in #31004 (comment)
The text was updated successfully, but these errors were encountered: