Please specify: Make sure your permalinks are set to “post name”. #69

Closed
dotnetCarpenter opened this Issue Jan 23, 2014 · 2 comments

Comments

Projects
None yet
3 participants

I was trying to get WP-API to work for hours and actually gave up until I stumbled upon http://themergency.com/wordpress-rest-api/. I didn't know that I should Make sure your permalinks are set to “post name”.

Please, please note this in capital letters in the README!

You might also want to add a link to Using Permanlinks - Choosing your permalink structure for other developers new to Wordpress.

Owner

rmccue commented Jan 24, 2014

More correctly, you need pretty permalinks on (it doesn't matter the scheme). Thanks for reporting this!

rmccue added this to the 1.0 milestone Apr 6, 2014

rachelbaker self-assigned this Apr 14, 2014

Owner

rachelbaker commented Apr 19, 2014

The code in pull request #138 does allow the JSON routes to respond with permalinks set to anything other than the default (not just "post name"). I successfully tested GET and POST requests with the permalinks set to:

  • Day and name
  • Month and name
  • Numeric
  • Custom

As noted in #138 I was not able to get a response from a JSON route when pretty permalinks were set to the default, on a fresh installation of WordPress 3.9.

Looking to @rmccue to comment here in case I misinterpreted the intent.

@rachelbaker rachelbaker assigned rmccue and unassigned rachelbaker Apr 19, 2014

@kellbot kellbot pushed a commit to kellbot/WP-API that referenced this issue Aug 1, 2014

@rachelbaker rachelbaker Merge pull request #138 from WP-API/ugly-permalinks
Respond to requests without depending on pretty permalink settings.  Fixes #69.
c4335f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment