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 {
);
}
function get_template_variables($instance, $args) {
if (!is_singular()){
if (!is_single()){
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 [
......
<?php
use guaraci\images;
$i = 0;
if(is_singular()):
if(is_single()):
?>
<div class="posts-list <?= $css_classes ?>">
<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