Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
open-source
Guaraci WordPress Plugin
Commits
2b5d3edb
Commit
2b5d3edb
authored
4 years ago
by
Isaque Melo
Browse files
Options
Download
Email Patches
Plain Diff
Remove uncategorized from list
parent
fb395f72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pagebuilder-components/widgets/posts-list/tpl/template.php
pagebuilder-components/widgets/posts-list/tpl/template.php
+4
-1
No files found.
pagebuilder-components/widgets/posts-list/tpl/template.php
View file @
2b5d3edb
...
...
@@ -26,11 +26,14 @@ use guaraci\images;
foreach
(
$post_categories
as
$category_id
){
$category
=
get_term
(
$category_id
);
if
(
$category_id
!=
1
){
?>
<div
class=
"categories-list--category category-
<?=
$category
->
slug
?>
"
>
<a
href=
"
<?=
esc_url
(
get_term_link
(
$category
,
'category'
))
?>
"
>
<?=
$category
->
name
?>
</a>
</div>
<?php
}
}
?>
</div>
...
...
@@ -50,4 +53,4 @@ use guaraci\images;
</div>
<?php
if
(
$link
->
url
)
:
?>
<a
href=
"
<?=
$link
->
url
?>
"
class=
"goto"
>
<?=
$link
->
label
?>
</a>
<?php
endif
;
?>
\ No newline at end of file
<?php
endif
;
?>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment