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
67c19f2e
Commit
67c19f2e
authored
Jan 28, 2020
by
Bruno Antunes Magrini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change is_singular to is_single
parent
385be757
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
pagebuilder-components/widgets/see-also-posts-list/see-also-posts-list.php
...nents/widgets/see-also-posts-list/see-also-posts-list.php
+1
-2
pagebuilder-components/widgets/see-also-posts-list/tpl/template.php
...r-components/widgets/see-also-posts-list/tpl/template.php
+1
-1
No files found.
pagebuilder-components/widgets/see-also-posts-list/see-also-posts-list.php
View file @
67c19f2e
...
...
@@ -18,7 +18,7 @@ class SeeAlsoPostsList extends PostsList {
);
}
function
get_template_variables
(
$instance
,
$args
)
{
if
(
!
is_sing
ular
()){
if
(
!
is_sing
le
()){
return
[
'query'
=>
(
object
)
array
(),
'link'
=>
(
object
)
array
(),
...
...
@@ -40,7 +40,6 @@ class SeeAlsoPostsList extends PostsList {
'terms'
=>
$term_list
,
),
),
);
$see_also_query
=
new
\WP_Query
(
$posts_query_args
);
return
[
...
...
pagebuilder-components/widgets/see-also-posts-list/tpl/template.php
View file @
67c19f2e
<?php
use
guaraci\images
;
$i
=
0
;
if
(
is_sing
ular
())
:
if
(
is_sing
le
())
:
?>
<div
class=
"posts-list
<?=
$css_classes
?>
"
>
<div
class=
"row"
>
...
...
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