post → getContent
Formats and returns the post content.
Description
string getContent([int|string $mode = '', array $options = array()])
- $mode
- Character count limit or mode. By default the mode will take the dafault value set in the content options / teasers / post content
- $options
- Other formatting options.
Examples
// output the content for the current post, for usage within a link (<a>) tag atom()->post->Content(array( 'mode' => 400, // limit to ~400 characters 'cutoff' => 'sentence', // cut off just after the sentence ends 'allowed_tags' => Atom::SAFE_INLINE_TAGS, // allow inline tags only, minus the <a> tag ));
Last revision 12 years