Content class: WP Post Content

Primary responsibility

Detail-screen renderer for a post that’s selected at runtime — e.g., the user tapped a row in a category list and the app now needs to show that post’s full body. Pairs with Content class: WP Post Category for list→detail navigation.


Settings

Setting Type Environment Purpose
show_featured_image yes-no per-button Render featured image
show_title yes-no per-button Render title
show_meta yes-no per-button Render author + date row
content_sections array per-button Ordered list of mam-suite content sections to append below the body

Content sections

The detail screen is composed of:

  1. The post body (filtered through the_content)
  2. A configurable list of content sections appended below

Available sections come from content-class-elements:

  • Featured image
  • Add to cart (WooCommerce)
  • Make offer
  • Simple product
  • Chat config
  • Order details
  • Seller profile
  • HTML
  • Spacer
  • Check in
  • Social media
  • Shipping status
  • Reviews

See Content class elements reference.


Hooks involved

Hook Type Role
the_content Filter Standard WP content filter
mam_main_content_section_<class> Filter (dynamic) Per-section content extension
mam_main_content_class_featured_image Filter Featured-image section

Gotchas

  • Selected at runtime, not configured. Don’t try to set a post_id on this button — it’s resolved from the navigation context.
  • Pair with WP Post Category. Standalone, this class shows nothing useful — it expects to be navigated to from a list view.
  • Per-button content sections are stored as a serialized array inside the button’s blob.

  • Content classes overview
  • Content class: WP Post Category
  • Content class: WP Content
  • Content class elements reference

Metadata

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_content_button (frozen)
Source file includes/content-classes/local-app-wp-post-content-class.php
Last verified 2026-05-02
Contents

    Need Support?

    Can't find the answer you're looking for? Don't worry we're here to help!