Last active
November 15, 2019 05:12
-
-
Save versluis/d9efb526db347692dbecd9262133c929 to your computer and use it in GitHub Desktop.
How to extract the Category Title without a URL
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
// print the categry title without a link | |
foreach((get_the_category()) as $category){ | |
echo '<h1 class="page-title">' . $category->name . '</h1>'; | |
} | |
// print the category description | |
the_archive_description('<blockquote class="wp-block-quote">', '</blockquote>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment