<ol start="3"> <li>Google Chrome</li> <li>Internet Explorer</li> <li>Mozilla Firefox</li> <li>Safari</li> <li>Opera</li> </ol>
Resource: https://css-tricks.com/almanac/properties/l/list-style/
<ol start="3"> <li>Google Chrome</li> <li>Internet Explorer</li> <li>Mozilla Firefox</li> <li>Safari</li> <li>Opera</li> </ol>
Resource: https://css-tricks.com/almanac/properties/l/list-style/
How to control list style:
#sidebar li:before { content: "» "; color: #999; /* or whatever color you prefer */ font-size: 26px; vertical-align: text-top;}
<?php if($post->post_parent) $children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>
Liste af indlæg.
<?php $posts_to_show = 100; //Max number of articles to display $debut = 0; //The first article to be displayed ?> <?php while(have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <ul> <?php $myposts = get_posts('numberposts=$posts_to_show&offset=$debut'); foreach($myposts as $post) : ?> <li><?php the_time('d/m/y') ?>: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul> <?php endwhile; ?>
Display parent headline and a list of children links in a submenu.
In this illustrative example:
The headline in the left column is Services both on parent as well as children page.
And this is the code:
<h2><?php $parent_title = get_the_title($post->post_parent); echo $parent_title; ?></h2> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>