Fix shortcode only displaying repository level items list.

This commit is contained in:
Mateus Machado Luna 2019-11-20 15:26:44 -03:00
parent 52c86c875f
commit e038734ee5
1 changed files with 3 additions and 3 deletions

View File

@ -366,13 +366,13 @@ class Theme_Helper {
);
$params = '';
if (isset($atts['collection-id'])) {
if (isset($atts['collection-id']) && $atts['collection-id'] != '') {
$params = "collection-id=" . $atts['collection-id'];
}
if (isset($atts['term-id'])) {
if (isset($atts['term-id']) && $atts['term-id'] != '') {
$params = "term-id=" . $atts['term-id'];
}
$this->enqueue_scripts(true);
return "<div id='tainacan-items-page' $params ></div>";