Test

Inline Code sollte so ausschauen.




PostViews

<ul>
<?php
global $post;
$args = array(
‘order’ => ‘DESC’,
‘suppress_filters’ => false,
‘orderby’ => ‘post_views’
);
$most_viewed = get_posts( $args );
foreach( $most_viewed as $post ){ setup_postdata($post);
?>

<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>

<?php }
wp_reset_postdata();
?>
</ul>




Kommentare hier




Themen BHS 5