#10772 closed enhancement (worksforme)
Categories & Pages
| Reported by: | kartiktalwar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.8.4 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
This is just a recommendation and I would like to see this feature in the next coming version of wordpress.
I would like wordpress to give more control over how the categories and pages are displayed. To simplify it I am writing the code to show you what I mean.
the new function == ImprovedCategory(); | ImprovedPages();
<?php
$PowerfulCat = ImprovedCategory();
foreach($PowerfulCat as $cat)
{
echo "<div class='category'>$cat</div>";
}
basically what I am asking for is the elimination of the 'li' tags from the display so developers can have more control over how both cats & pages are displayed outside and inside of the loop
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Wouldn't you be better off using get_categories() or get_pages()?
ie:
<?php $cats = get_categories(); foreach ($cats as $cat ) { echo "<div class='category'>{$cat->name}</div>"; }