Edit code for related posts
-
Hi,
I have a theme with its own related posts code at the end of each post. It gets related posts by tags, but actually I would like to EXCLUDE 2 TAGS.in single.php I found the code:
<?php $tags = get_the_tags(); ?> <?php if($tags): ?> <?php $related = get_related_posts($post->ID, $tags); ?> <?php if($related->have_posts() && $related->found_posts >= 1 && get_option('reedwan_related') == 'On'): ?>
It should not be too difficult but can’t figure it out. Any help?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Edit code for related posts’ is closed to new replies.