Comments (4)
The same way that you're specifying the per_page
and post_type
, you can pass parameters to limit the categories of returned posts. Look through the "Taxonomy Filters" under "Posts" in the documentation: https://github.com/voceconnect/thermal-api#posts
If you need to get the taxonomies that the post type supports, take a look at the taxonomy calls: https://github.com/voceconnect/thermal-api#taxonomies
from thermal-api.
I tried that and I get this:
{"posts":[]}
http://www.sgo-beta.com/wp_api/v1/posts?per_page=500&post_type=listing&category_name=Virginia
from thermal-api.
Tried it this way to:
http://www.sgo-beta.com/wp_api/v1/posts?per_page=500&post_type=listing&taxonomies=virginia
from thermal-api.
As @banderon said above, you should reference the Taxonomy Filters under the posts parameters - specifically here https://github.com/voceconnect/thermal-api#parameters.
To use the category_name
parameter, you'll have to use the slug not the name.
For the taxonomy
parameter, it accepts an associative array where the key is the name of the taxonomy and the value is an array of term IDs. Post that exist in any of the terms will be included in the results.
from thermal-api.
Related Issues (20)
- Querying a large per_page number of posts HOT 3
- Problem with UTF8 chars and JSON_encode HOT 4
- Post Type HOT 1
- strange case of invalid route HOT 1
- Nevermind - not an issue
- termal-api installation error HOT 1
- API Listing Scheduled Posts as 'Publish' HOT 4
- Caching not fetching recently created category HOT 2
- 500 error when obtaining posts
- Feature Requests: Custom fields, Featured Image, Attachment URL's
- Is there a way to query by post date range? HOT 3
- Per page on taxonomies route
- the url of the avatar of the authors appear to me no HOT 2
- Render Shortcodes before sending JSON HOT 1
- 144 posts but only 4 posts got in the JSON HOT 1
- 404 when using thermal in its own directory HOT 3
- Custom Post Type endpoint returning attachments HOT 2
- Exception when sizes is undefined
- Voce\Thermal\API_ROOT constant has no affect, documentation inaccurate, plugin incomplete.
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 thermal-api.