Show related posts without a plugin [WP]

1
2
<?php
$tags = wp_get_post_tags($post->ID);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Display related posts based on the current post tag(s). You need to place it inside single.php, or simply anywhere you want to show the related posts.

2 Responses

J'aime
@Michou I like

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.