Git Product home page Git Product logo

Comments (4)

banderon avatar banderon commented on September 2, 2024

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.

johnsonsg avatar johnsonsg commented on September 2, 2024

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.

johnsonsg avatar johnsonsg commented on September 2, 2024

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.

kevinlangleyjr avatar kevinlangleyjr commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.