Get ACF Repeater Rows
Returns repeater or flexible-content field rows as structured arrays, each row keyed by sub-field name.
| Property | Value |
|---|---|
| Ability slug | mosmcp/get-repeater-rows |
| Wire tool name | mosmcp__get-repeater-rows |
| Category | Advanced Custom Fields (mosmcp-acf) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts, edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Requires | Advanced Custom Fields |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| field_key | string | Yes | — | Repeater or flexible content field name/key. |
| post_id | integer | Yes | — | Post/page/CPT entry the repeater belongs to. |
| row_index | integer | — | If supplied, returns only that single row (0-based) instead of all rows. |
Output schema
| Field | Type | Required |
|---|---|---|
| field_type | string | |
| row_count | integer | |
| rows | array \| object \| null |
Example
Sample prompt
List the FAQ entries on the Help page (ID 42).
Example request (json)
{
"jsonrpc": "2.0",
"id": 421,
"method": "tools/call",
"params": {
"name": "mosmcp__get-repeater-rows",
"arguments": {
"input": {
"field_key": "faq_items",
"post_id": 42
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 421,
"result": {
"isError": false,
"structuredContent": {
"field_type": "repeater",
"row_count": 2,
"rows": [
{
"question": "Do you ship abroad?",
"answer": "Yes, to 30 countries."
},
{
"question": "How long is delivery?",
"answer": "3-5 business days."
}
]
}
}
}
Edge cases / errors
- Field is not a repeater, flexible content or group field → acfa_not_repeater error naming the actual type.
- row_index below 0 or at/after the row count → acfa_row_out_of_range error stating how many rows exist.
- With row_index, rows is that single row object instead of an array; row_count still reports the total.
- Missing post → acfa_invalid_post; unknown field → acfa_field_not_found; no edit access to the post → permission refused.
| << Previous | Next >> |
|---|---|
| Get ACF Relationship Field | Get All ACF Fields for Post |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.