Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guaraci WordPress Plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
Guaraci WordPress Plugin
Commits
2b5d3edb
Commit
2b5d3edb
authored
Oct 21, 2020
by
Isaque Melo
Browse files
Options
Browse Files
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
;
?>
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