list-posts
Retrieve and filter WordPress posts by criteria like date, author, status, or keywords to manage content programmatically using REST API.
Instructions
Get a list of posts with comprehensive filtering options
Input Schema
Name | Required | Description | Default |
---|---|---|---|
after | No | Limit response to posts published after a given ISO8601 compliant date | |
author | No | Limit result set to posts assigned to specific authors | |
authorExclude | No | Ensure result set excludes posts assigned to specific authors | |
before | No | Limit response to posts published before a given ISO8601 compliant date | |
categories | No | Limit result set to items with specific terms assigned in the categories taxonomy | |
categoriesExclude | No | Limit result set to items except those with specific terms assigned in the categories taxonomy | |
context | No | Scope under which the request is made | view |
exclude | No | Ensure result set excludes specific IDs | |
include | No | Limit result set to specific IDs | |
modifiedAfter | No | Limit response to posts modified after a given ISO8601 compliant date | |
modifiedBefore | No | Limit response to posts modified before a given ISO8601 compliant date | |
offset | No | Offset the result set by a specific number of items | |
order | No | Order sort attribute ascending or descending | desc |
orderby | No | Sort collection by post attribute | date |
page | No | Current page of the collection | |
password | Yes | WordPress application password | |
perPage | No | Maximum number of items to be returned | |
search | No | Limit results to those matching a string | |
searchColumns | No | Array of column names to be searched | |
siteUrl | Yes | WordPress site URL | |
slug | No | Limit result set to posts with one or more specific slugs | |
status | No | Limit result set to posts assigned one or more statuses | |
sticky | No | Limit result set to items that are sticky | |
tags | No | Limit result set to items with specific terms assigned in the tags taxonomy | |
tagsExclude | No | Limit result set to items except those with specific terms assigned in the tags taxonomy | |
taxRelation | No | Limit result set based on relationship between multiple taxonomies | |
username | Yes | WordPress username |