fix template tags
This commit is contained in:
parent
8676e965f5
commit
1ae0ed3898
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue