Commit 67c19f2e authored by Bruno Antunes Magrini's avatar Bruno Antunes Magrini

change is_singular to is_single

parent 385be757
...@@ -18,7 +18,7 @@ class SeeAlsoPostsList extends PostsList { ...@@ -18,7 +18,7 @@ class SeeAlsoPostsList extends PostsList {
); );
} }
function get_template_variables($instance, $args) { function get_template_variables($instance, $args) {
if (!is_singular()){ if (!is_single()){
return [ return [
'query' => (object) array(), 'query' => (object) array(),
'link' => (object) array(), 'link' => (object) array(),
...@@ -40,7 +40,6 @@ class SeeAlsoPostsList extends PostsList { ...@@ -40,7 +40,6 @@ class SeeAlsoPostsList extends PostsList {
'terms' => $term_list, 'terms' => $term_list,
), ),
), ),
); );
$see_also_query = new \WP_Query($posts_query_args); $see_also_query = new \WP_Query($posts_query_args);
return [ return [
......
<?php <?php
use guaraci\images; use guaraci\images;
$i = 0; $i = 0;
if(is_singular()): if(is_single()):
?> ?>
<div class="posts-list <?= $css_classes ?>"> <div class="posts-list <?= $css_classes ?>">
<div class="row"> <div class="row">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment