WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#10772 closed enhancement (worksforme)

Categories & Pages

Reported by: kartiktalwar Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.4
Component: Template Keywords: reporter-feedback
Focuses: Cc:

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

Change History (4)

comment:1 @dd326 years ago

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>";
}

comment:2 @dd326 years ago

  • Component changed from Accessibility to Template
  • Keywords reporter-feedback added; categories cms pages removed

comment:3 @scribu5 years ago

  • Milestone changed from Unassigned to 3.0
  • Resolution set to worksforme
  • Status changed from new to closed

Agree with dd32.

Related: #11817

comment:4 @scribu5 years ago

  • Milestone 3.0 deleted
Note: See TracTickets for help on using tickets.