Instantly share code, notes, and snippets.

Embed
What would you like to do?
Extract some code, Specific post tag, WordPress
<?php $posttags = get_the_tags(); if ($posttags) { $key = array_search($posttags, 'TAG_NAME'); $posttags[$key]; ?>
<!-- something do -->
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment