I figured it out. Turns out that using the field name
was the culprit. It appears that name
and other field names like attachment
, attachment_id
, etc will cause WordPress to produce a 404 error. There’s a whole list of reserved terms in the Codex.