0

How to Display Only Parent Category in your WordPress Post Loop

Simply open your single.php file or anywhere else that you want to utilize this code, and then replace the following code or something similar to it: [code language=”css”] <?php the_category(‘, ‘); ?> [/code] with the code [code language=”css”] <?php $parentscategory… Continue Reading