# wp-ultimate-post-grid/1.7.2/addons/custom-templates/templates/post/content.php

WP Ultimate Post Grid, version 1.7.2. 21 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/code/addons/custom-templates/templates/post/content.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/raw/addons/custom-templates/templates/post/content.php
- Modified: 2015-09-29T13:38:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/code/addons/custom-templates/templates/post/content.php#L10-L20`.

```php
<?php

class WPUPG_Template_Post_Content extends WPUPG_Template_Block {

    public $editorField = 'postContent';

    public function __construct( $type = 'post-content' )
    {
        parent::__construct( $type );
    }

    public function output( $post, $args = array() )
    {
        if( !$this->output_block( $post, $args ) ) return '';

        $output = $this->before_output();
        $output .= '<div' . $this->style() . '>' . wpautop( do_shortcode( $this->cut_off( $post->post_content ) ) ). '</div>';

        return $this->after_output( $output, $post );
    }
}
```
