Created
June 30, 2021 02:46
-
-
Save WPVNdev/56faefd7d0d3a958e8cde7a81a21ae4a to your computer and use it in GitHub Desktop.
Bỏ Category Name bên trên Titlte ở trang Blog Posts Page
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
<?php | |
function removeCategoryNameInBlogPostPage($category) | |
{ | |
if (is_home()) { | |
return false; | |
} | |
return $category; | |
} | |
add_filter('the_category', 'removeCategoryNameInBlogPostPage'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trước:
Sau: