removed related posts if none by checking for array
This commit is contained in:
parent
e2f1f3442d
commit
3731b72c5b
@ -33,7 +33,7 @@
|
||||
<?php
|
||||
if (function_exists('get_field')) {
|
||||
$related_posts = get_field('related_posts', $post_id);
|
||||
if (isset($related_posts)) : ?>
|
||||
if (isset($related_posts) && is_array($related_posts)) : ?>
|
||||
<div class="st-sub-grid">
|
||||
<h3>Related Articles</h3>
|
||||
<div class="st-article-section-related-articles">
|
||||
|
Loading…
Reference in New Issue
Block a user