Primary responsibility
List view of all posts in a configured category (or post type). Each row navigates to Content class: WP Post Content for the detail.
Settings
| Setting |
Type |
Environment |
Purpose |
category_id |
number |
per-button |
The WP category id to list |
post_type |
select |
per-button |
post / a custom post type |
posts_per_page |
number |
per-button |
How many to fetch per request |
order_by |
select |
per-button |
date / title / menu_order / meta_value |
order |
select |
per-button |
ASC / DESC |
show_featured_image |
yes-no |
per-button |
Per-row featured image |
show_excerpt |
yes-no |
per-button |
Per-row excerpt |
style_* |
various |
per-button |
Colors, layout |
JSON shape (per row)
{
"id": "123",
"title": "Post title",
"excerpt": "Short excerpt",
"featured_image": "https://...",
"date": "2026-05-02"
}
Hooks involved
| Hook |
Type |
Role |
mam_get_phone_data_before_send |
Filter |
Sibling plugins can inject custom rows or filter rows out |
the_content |
Filter |
Standard WP filter on the per-row excerpt |
Gotchas
- Static category configuration. This class binds to a single category. For URL-driven category selection, use Content class: WP Post Category URL.
- Pagination is server-side. Don’t return all 10,000 posts at once; use the
posts_per_page setting and the cursor mechanism.
- Pair with the detail class. Without Content class: WP Post Content configured, tapping a row goes nowhere.
Related articles
- Content classes overview
- Content class: WP Post Category URL
- Content class: WP Post Content
- Cursor cache mechanism
| Field |
Value |
| Article type |
Screen Reference |
| Plugin slug |
mam-main |
| Applies to plugin version |
2.1.11+ |
| Category |
App Settings Reference |
| Audience |
WordPress admin / PHP developer |
| Class name |
local_app_wp_post_category_button (frozen) |
| Source file |
includes/content-classes/local-app-wp-post-category-class.php |
| Last verified |
2026-05-02 |