Det virker ikke. Måske fordi »The Loop« i dette tilfælde ikke er helt almindeligt. Jeg kan ikke se hvor jeg skal placere det.
<?php if ($posts) {
$AsideId = get_settings('mistylook_asideid');
function ml_hack($str)
{
return preg_replace('|
\s*<ul class="asides">|', '', $str);
}
ob_start('ml_hack');
foreach($posts as $post)
{
start_wp();
?>
<?php if ( in_category($AsideId) && !is_single() ) : ?>
<ul class="asides">
<li id="p<?php the_ID(); ?>">
<?php echo wptexturize($post->post_content); ?>
<br/>
<?php comments_popup_link('(0)', '(1)','(%)')?> | " title="Permalink: <?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?>" rel="bookmark"># <?php edit_post_link('(edit)'); ?>
<?php else: // If it's a regular post or a permalink page ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="posttitle">
<h2>" rel="bookmark" title="Permanent Link til <?php the_title(); ?>"><?php the_title(); ?></h2>
<p class="post-info">Postet d. <?php the_time('j. M Y') ?> af <?php the_author_posts_link() ?> <?php edit_post_link('Ret', '', ' | '); ?>
</div>
<div class="entry">
<?php the_content('Læs hele indlægget �'); ?>
<?php wp_link_pages(); ?>
</div>
<p class="postmetadata">Postet i kategorierne <?php the_category(', ') ?> | <?php comments_popup_link('Skriv en kommentar »', 'Én kommentar »', '% kommentarer »'); ?>
<?php comments_template(); ?>
</div>
<?php endif; // end if in category ?>
`