Skip to content
This repository has been archived by the owner. It is now read-only.

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

Closed
dotnetCarpenter opened this issue Jan 23, 2014 · 4 comments
Closed
Assignees
Milestone

Comments

@dotnetCarpenter
Copy link

@dotnetCarpenter dotnetCarpenter commented Jan 23, 2014

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.

@rmccue

This comment has been minimized.

Copy link
Member

@rmccue rmccue commented Jan 24, 2014

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

@rmccue rmccue added this to the 1.0 milestone Apr 6, 2014
@rachelbaker rachelbaker self-assigned this Apr 14, 2014
@rachelbaker

This comment has been minimized.

Copy link
Member

@rachelbaker 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 pushed a commit to kellbot/WP-API that referenced this issue Aug 1, 2014
Respond to requests without depending on pretty permalink settings.  Fixes WP-API#69.
@razorsharpshady

This comment has been minimized.

Copy link

@razorsharpshady razorsharpshady commented Mar 9, 2018

@dotnetCarpenter your post just saved my day. Thanks Man.

Other guys looking for solution:
Settings > Permalinks
Make sure your permalinks are set to “post name”.

Just for google searches : WooCommerce > Settings. You must enable pretty permalinks, as default permalinks will not work.
woo

@loloDawit

This comment has been minimized.

Copy link

@loloDawit loloDawit commented Apr 8, 2018

I almost gave until I found this page, I think this needs to be on the api documentation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.