| @@ -114,8 +114,11 @@ | ||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return ''; |
| 117 | 117 | } |
| 118 | + public function comment_count() { | |
| 119 | + return $this->meta( 'comment_count', 0 ); | |
| 120 | + } | |
| 118 | 121 | public function content() { |
| 119 | 122 | return $this->meta( 'content' ); |
| 120 | 123 | } |
| 121 | 124 | public function custom_field( $key ) { |
| @@ -123,8 +126,11 @@ | ||
| 123 | 126 | } |
| 124 | 127 | public function date() { |
| 125 | 128 | return $this->meta( 'date' ); |
| 126 | 129 | } |
| 130 | + public function date_modified() { | |
| 131 | + return $this->meta( 'date_modified' ); | |
| 132 | + } | |
| 127 | 133 | public function excerpt() { |
| 128 | 134 | return $this->meta( 'excerpt' ); |
| 129 | 135 | } |
| 130 | 136 | public function image( $size = 'thumbnail' ) { |
| @@ -167,8 +173,11 @@ | ||
| 167 | 173 | $thumb = wp_get_attachment_image_src( $this->image_id(), $size ); |
| 168 | 174 | } |
| 169 | 175 | |
| 170 | 176 | return $thumb && isset( $thumb[0] ) ? $thumb[0] : ''; |
| 177 | + } | |
| 178 | + public function menu_order() { | |
| 179 | + return $this->meta( 'menu_order', 0 ); | |
| 171 | 180 | } |
| 172 | 181 | public function post_type() { |
| 173 | 182 | return $this->meta( 'post_type' ); |
| 174 | 183 | } |