• I am looking to retrieve a subset of the records for a custom post type based on a value in an ACF field. The application is to allow our mobile app developer to call my site’s REST API for conference sessions, but only the ones with a flag set.

    Functionally, I’d like to just add the query param and value to the end of the url, like this:
    https://www.immunology2023.org/wp-json/wp/v2/session?app_share=1

    I’ve seen the WordPress documentation for doing this, but it includes the creation of a new REST endpoint, and I want to add this query param to an existing endpoint generated by the WP REST API Controller plugin.

    Any advice? Code samples welcome!

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding Query Parameters’ is closed to new replies.