/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<h3><a href="<?php bloginfo( 'url' ); ?>/blog/">Neues aus dem Sonnenprojekt</a></h3> <ul> <?php global $post; $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>