Skip to content

posts accessor

Polmonite edited this page Sep 21, 2019 · 1 revision

PostsAccessor

The posts accessor retrieve a list of Malini\Post.

Syntax:

@posts:{post_id_or_meta_key_1}, ... ,{post_id_or_meta_key_n},{decorators}

  • {post_id_or_meta_key_n}: post numeric id or string meta key containing the wanted post; n of them can be passed;
  • {decorators}: list of registered decorators to apply to all retrieved posts; they must be divided by pipe; no options can be passed (filters can be applied at that purpose); if no decorator are wanted, the false string can be passed.

Examples:

Other

Extend Malini

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