6 years, 1 month ago tasmantheoryParticipant
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>
<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; ?>
6 years, 1 month ago MirelaParticipant
Sorry but that is a customization not covered by this support.
You must be logged in to reply to this topic.