Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $post;
- $this_post_tags_ids = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) );
- $query = new WP_Query( array( 'tag__in' => $this_post_tag_ids ) );
- if ($query->have_posts()){
- while($query->have_posts()){
- $query->the_post();
- echo the_title('<h3><a href="'.get_the_permalink.'"/>', '</a></h3>');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement