I’ve looked both here and on the Codex, and can’t seem to find the answer I need. Of course I may have missed it, please don’t hesitate to point me back to where I’ve missed the info (as if you would hesitate anyway!).
In my Category.php page, I have
before the Loop.
This displays children items of the current category in a unordered list.
The problem is that in order for it to work, I had to hardcode
<ul>before the call, and
after the call…
This isn’t a problem per se, until you reach a category that doesn’t have children items. At that point, you end up with an empty
, which breaks validation and plays havock with the site.
There doesn’t appear to be a before/after parameter for that tag.
Any idea on how to best load the ul tag only if there are list items to be displayed?
Thanks for any and all information.
- The topic ‘wp_list_cats ul before and after?’ is closed to new replies.