-
-
The blog has previous/next buttons that show the previous/next posts based on date.
Is there a way to edit the code so it ONLY shows previous/next for posts within the same category?
This is the code being used:
<?php if(is_object(get_previous_post())): ?>
<span class=”icon-wrap”><i class=”icon-angle-left”></i></span>
<div>
<h3><?php echo esc_html(get_previous_post()->post_title); ?></h3>
<?php if(has_post_thumbnail(get_previous_post()->ID)): ?>
ID), ‘blog_grid’, ‘url’)) ?>” alt=”Previous thumb”/>
<?php endif; ?>
</div>
-
Hello,
Sorry but that is a customization not covered by this support.
Best regards!
-
Viewing 1 reply thread
You must be logged in to reply to this topic.