Primary responsibility
Same as Content class: WP Post Category but the category id is selected at runtime from the navigation context (the URL the app navigated to). Used for hierarchical browse flows: a parent category list whose rows each open a child category list.
Settings
Mostly identical to WP Post Category except category_id is not configurable — it’s resolved from the request.
| Setting |
Type |
Environment |
Purpose |
post_type |
select |
per-button |
post or a custom post type |
posts_per_page |
number |
per-button |
Pagination size |
order_by / order |
select |
per-button |
Sort |
style_* |
various |
per-button |
|
When to choose this over WP Post Category
|
WP Post Category |
WP Post Category URL |
| Category is fixed |
✅ Use this |
❌ |
| Category comes from navigation |
❌ |
✅ Use this |
| One-off “All Recipes” list |
✅ |
❌ |
| Hierarchical “Browse by category” |
❌ |
✅ |
Gotchas
- Hard to test in isolation — the screen depends on a navigation parameter. The Previewer can stub it; in production, navigate from a parent screen.
- Category id is trusted from the URL. Don’t expose this content class on a URL surface where untrusted users can construct arbitrary category ids — use
posts_per_page to cap the result size.
Related articles
- Content classes overview
- Content class: WP Post Category
- Content class: WP Post Content
| 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_url_button (frozen) |
| Source file |
includes/content-classes/local-app-wp-post-category-url-class.php |
| Last verified |
2026-05-02 |