Update functions.php

FI & Video
This commit is contained in:
Mohamad Fahmi 2015-02-07 17:39:22 +07:00
commit 6be89b62ad

View file

@ -243,6 +243,8 @@ function get_posts($posts, $page = 1, $perpage = 0)
// Extract the title and body
$post->title = get_content_tag('t', $content, 'Untitled: ' . date('l jS \of F Y', $post->date));
$post->feature = get_content_tag('fi', $content);
$post->video = get_content_tag('vid', $content);
// Get the contents and convert it to HTML
$post->body = MarkdownExtra::defaultTransform(remove_html_comments($content));