/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$post = Blog_Post::create()->limit(1)->order('updated_at DESC')->find_all(); if($post): $url = root_url($site_settings->blog->path) . 'post/' . $post->url_title . '/'; $trim = 250; if($l_1 < $trim) $content = '<p>' . $m1[0][1] . '</p>'; else