WordPress Extended icon

WordPress Extended

WordPress REST API with Custom Post Types, ACF and Meta Fields

Actions17

Post → Get

AI-generated

Summary

Retrieve a single post by its ID and optionally apply request options.

Inputs

  • postId (required) — Unique identifier for the post.
  • options — Additional request options such as password and context.

Output shape

A single post record

Only fields requested via context are included; optional fields may be omitted.

Examples

Example 1: Get a post by ID with default context

postId=123, options={"context":"view"}

Example 2: Retrieve a password-protected post

postId=456, options={"password":"secret"}

Links

Discussion