fix template tags

This commit is contained in:
Leo Germani 2018-05-22 12:29:15 -03:00
parent 8676e965f5
commit 1ae0ed3898
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ function tainacan_get_the_metadata($field = null, $hide_empty = true) {
$post = get_post();
$theme_helper = \Tainacan\Theme_Helper::get_instance();
if (!$theme_helper->is_post_an_item($post));
if (!$theme_helper->is_post_an_item($post))
return;
$item = new Entities\Item($post);
@ -47,12 +47,12 @@ function tainacan_get_the_document() {
$post = get_post();
$theme_helper = \Tainacan\Theme_Helper::get_instance();
if (!$theme_helper->is_post_an_item($post));
if (!$theme_helper->is_post_an_item($post))
return;
$item = new Entities\Item($post);
return $item->get_document_html($field, $hide_empty);
return $item->get_document_html();
}