Chalk Extension: Post

Helper methods and properties relevant to the current Post object. (commonly $post)

Listed below are the available methods and properties.

 

 

Custom(string key)
Returns the custom field for the given key

show example ↓

 

Excerpt(string, string, string, int)
Returns the Post excerpt. If a PostBody exists, it will be used. If not, it returns the first 300 none HTML characters

 

CustomExcerpt(int len)
Returns the first len none HTML chacters of the PostBody property

 

FetchPostsByTag(string tagName)
Returns a collection of posts for a given tag. This is a special call since tagName is not available on the post query

 

FetchByColumn(DataBuddy.Column, System.Object)
Fetches an instance of Post based on a single column value. If more than one record is found, only the first will be used.

 

CreateQuery
Creates an instance of Query for the type Post