Revision: 37053
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 3, 2010 03:43 by brunohstein
Initial Code
<dl>
<dt><a href="<?php bloginfo('url') ?>">Lorem Ipsum</a></dt>
<?php $pages = get_pages(''); foreach ($pages as $pagg) {
$option = '<dd><a href="'.get_page_link($pagg->ID).'">';
$option .= $pagg->post_title;
$option .= '</a></dd>';
echo $option;
} ?>
</dl>
<dl>
<dt>Lorem Ipsum</dt>
<?php $categories=get_categories(''); foreach($categories as $category) {
echo '<dd><a href="'.get_category_link( $category->term_id ).'">'.$category->name.'</a></dd>';
} ?>
</dl>
Initial URL
Initial Description
How to display your page or categories list within a definition list instead of the default unordered list. The first block is about pages and the second one is about categories.
Initial Title
List Pages/Categories whitin definition lists
Initial Tags
wordpress
Initial Language
PHP