started fixing loop by menu instead of static

This commit is contained in:
Øyvind Bakkeli committed 2011-07-21 16:17:03 +02:00
1 parent 67046c7c98
commit f74ce3ae75
1 file changed
+10 -2
+10 -2
View File
@@ -11,7 +11,7 @@ if ($news->have_posts()) : while ($news->have_posts()) : $news->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a><a href="<?php the_permalink(); ?>" rel="bookmark" ></a></h2>
<h2><a href="<?php the_permalink(); ?>"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a><a href="<?php the_permalink(); ?>" rel="bookmark" ></a></h2>
<p class="meta">Posted on <?php the_time('F jS, Y'); ?></p>
<div id="hidpos-<?php the_ID(); ?>" style="display:none"><?php the_content(); ?></div>
@@ -25,6 +25,14 @@ if ($news->have_posts()) : while ($news->have_posts()) : $news->the_post(); ?>
<h2>No Posts Found</h2>
<?php endif; ?>
<?php
$tmp = wp_get_nav_menu_items('3');
echo '<pre>';
var_dump($tmp);
echo '</pre>';
?>
<hr />
<h1>Program</h1>
@@ -43,7 +51,7 @@ if ($events->have_posts()) : while ($events->have_posts()) : $events->the_post()
<div class="post" id="post-<?php the_ID(); ?>">
<h2>
<a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a></h2>
<a href="<?php the_permalink(); ?>"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a></h2>
<p class="meta">Posted on <?php the_time('F jS, Y'); ?></p>
<div id="hidpos-<?php the_ID(); ?>" style="display:none"><?php the_content(); ?></div>