Skip to content

Instantly share code, notes, and snippets.

@amekusa
Last active December 3, 2015 00:55
Show Gist options
  • Select an option

  • Save amekusa/31f32a36ebe2b4fedd15 to your computer and use it in GitHub Desktop.

Select an option

Save amekusa/31f32a36ebe2b4fedd15 to your computer and use it in GitHub Desktop.
WordPress Troubleshooting

WordPress Troubleshooting

Why is my post meta changes saved when I clicked "Preview Changes"

Use update_metadata() instead of update_post_meta().

How to remove leading /blog/ on permalink

  1. Settings -> Permalinks -> Common Setting -> Default
  2. Admin -> Sites -> (root site) Permalink Sturcture -> /%category%/%post_id%/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment