Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan McCue

    (@rmccue)

    You can pass the type parameter to /posts:

    GET /wp-json/posts?type=my-type

    I wish that worked. All I get is a bad gateway error.

    wp-json/posts?type=ws_menu

    Not sure if it is the underscore in the CPT name though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looping through Custom Posts’ is closed to new replies.