-
Notifications
You must be signed in to change notification settings - Fork 4
with post data
petertank edited this page Dec 4, 2019
·
2 revisions
The post
decorator enrich the Malini\Post
with all the basic info about
a WP_Post
.
Attributes added:
-
id
: theWP_Post->ID
; -
title
: theWP_Post->post_title
; -
content
: theWP_Post->post_content
; -
filtered_content
: theWP_Post->post_content_filtered
; -
status
: theWP_Post->post_status
; -
excerpt
: theWP_Post->post_excerpt
; -
created_at
: theWP_Post->post_date
; -
slug
: theWP_Post->post_name
; -
updated_at
: theWP_Post->post_modified
; -
parent_id
: theWP_Post->post_parent
; -
order
: theWP_Post->menu_order
; -
posttype
: theWP_Post->post_type
; -
permalink
: theWP_Post
permalink.
Options:
-
filter
: the attributes we want to retrieve; see filter option syntax.
- Getting started
- Why Malini
- BaseAccessor
- ThisAccessor
- AllMetaAccessor
- MetaAccessor
- GroupedMetaAccessor
- MediaAccessor
- PostsAccessor
- PostAccessor
- Malini\Post
- Malini\Archive
- JSON Helper
- Filter Option Syntax
- Create your own Accessor
- Create your own Decorator
- Available Extensions
- Malini\Aeria
- Malini\YOAST
- Malini\ACF