Comments (4)
@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.
from wp-api.
I almost gave until I found this page, I think this needs to be on the api documentation
from wp-api.
More correctly, you need pretty permalinks on (it doesn't matter the scheme). Thanks for reporting this!
from wp-api.
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.
from wp-api.
Related Issues (20)
- urldecode for slug HOT 1
- Can i extract in JSON FORMAT for mobile app? HOT 2
- 2u8mqg HOT 1
- Output rendering problem HOT 1
- Make a new query with a specific link HOT 1
- register_rest_field update_callback not work HOT 1
- Unable to post users HOT 1
- How to access superagent's request obj? HOT 2
- Get URL/File of an embedded video HOT 1
- Wordpress-Api HOT 1
- Custom fields and query in url HOT 1
- pass utf-8 characters to url HOT 1
- Rest Api Visual Composer HOT 1
- Want display all parent categories with first level child HOT 1
- want to display all parent category with first level child HOT 1
- unable to get url parameters HOT 1
- /wp-json/wp/v2/posts and /wp-json/wp/v2/posts doesen't work. HOT 1
- Error on UTF8 encode HOT 1
- Error on UTF8 encode HOT 1
- Custom post type filter parent_post not working in wp rest api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-api.