Skip to content

post accessor

Polmonite edited this page Sep 21, 2019 · 1 revision

PostAccessor

The post accessor retrieve a Malini\Post.

Syntax:

@post:{post_id_or_meta_key},{decorators}

  • {post_id_or_meta_key}: post numeric id or string meta key containing the wanted post; also an accessor definition can be passed (just keep in mind that an int is expected);
  • {decorators}: list of registered decorators to apply; they must be divided by pipe; no options can be passed (filters can be applied at that purpose).

Examples:

Other

Extend Malini

  • Create your own Accessor
  • Create your own Decorator
  • Available Extensions
    • Malini\Aeria
    • Malini\YOAST
    • Malini\ACF
Clone this wiki locally