Category name and description won't display
-
I’m having trouble getting the category name and description to show up in my theme. The page is here: https://shoptrs.vineandgrain.com/category/accessories
I want it to show up for the category page and any single pages, so I thought I could do it with is_single and the code I found on wordpress’s support site, but I’m obviously doing something wrong. It’s outside the loop, but I don’t think that makes a?difference.
I’m trying to use the following code:
<div id="header-text-top"> <?php if (is_single('')) { ?> <h1 class="pagetitle"><?php echo single_cat_title(); ?></h2> <h3> <?php echo category_description(); ?> </h3> <?php } ?> </div> <!-- header-text-top -->
Any ideas that could help me? Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Category name and description won't display’ is closed to new replies.