Comments (8)
I get a 200 but the data is not filtered by post_type. Out of curiosity: why would it work? Seems inconsistent with the doc.
from wp-api.
Just to be clear: when querying http://lpdf.dev/wp-json.php/posts?type=faute
I get the correct data but the status code is 404.
from wp-api.
For those passing by, I ended up circumventing the problem by creating my own endpoint based on my custom post type, just follow the docs: https://github.com/WP-API/WP-API/blob/master/docs/guides/extending.md
from wp-api.
@abulte Is there anything that still needs attention in this issue to be resolved?
from wp-api.
@rachelbaker thanks for checking in. Like I said I got around the problem by using a custom endpoint. So the original bug may still be present, we need to test against the latest release which I haven't had a chance to do. But if nobody else has complained about that...
from wp-api.
I suspect this is related to the same issue that made #46 necessary. Can you try using the latest version from here and see if that fixes it? :)
from wp-api.
@abulte To clarify....you should be able to GET all posts of a certain post type by passing the query string. However, you cannot POST data using a query string url. I am not sure if that is the issue here, but I know our documentation surrounding this could use some clarification.
from wp-api.
Closing, as we don't have any further feedback. Let me know if we can do anything further here.
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.