How do I customize “wp:categories”
-
<!-- wp:categories --> <li class="cat-item cat-item-9"> <a href="#">MENU</a> (1) </li>
Looking at how this function is marked up, there is no way to customize it.
I don’t know why the post count was designed to be like this, but I have to use javascript to separate the menu and count parts.
Is there a way to do this that I don’t know about?
<li class="cat-item cat-item-9" data-count="1"> <a href="#">MENU</a> </li> or <li class="cat-item cat-item-9"> <a href="#">MENU</a> <span>1</span> </li>
I expected something like this, but was surprised to see a completely different result.
Whatever it is, it doesn’t matter as long as there is a way to control it.Could you please help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I customize “wp:categories”’ is closed to new replies.