• amiteshg

    (@amiteshg)


    Hey Folks,

    Could anyone please provide me with the API endpoints that can be used to retrieve custom posts using API calls?

    My goal is to retreive a custom post that is based on a theme.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Your CPT slug should be the endpoint. If it is “portfolio” for example, request /wp-json/wp/v2/portfolio. Your CPT must be registered with 'show_in_rest' => true, for this to work.

Viewing 1 replies (of 1 total)

The topic ‘Regarding API endpoints for retrieving custom post’ is closed to new replies.