Created
August 25, 2016 13:52
-
-
Save kharissulistiyo/b4f6c0e13d292fd83b1b4d4655721a1f to your computer and use it in GitHub Desktop.
Incorrect category link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Check if category exists and echo it | |
if($category) { | |
echo ' | |
<li> | |
<i class="fa fa-tags"></i> | |
<a href="'.esc_url($category[0][1]).'">'.esc_html($category[0][2]).'</a> | |
</li>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment