Ok... I've been searching for hours using all kinds of key words and I can't find a single result that works. I've found code for sorting posts in ascending or descending order...or ordering by page title alphabetically, etc...but not page/post order.
I have pages that all have specific tags (using a plugin that lets me assign tags to pages). My archive page returns the results correctly for the specific tag, but I want to make sure the results are in a specific order using the page order. I've tried everything I can think of , but nothing seems to work. Either nothing happens or I get an error. Any thoughts/ideas?
Here's my archive page code:
<?php get_header(); ?>
<div id="pagename">
<div class="inside">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2><?php single_tag_title(); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2>Blog Archives</h2>
<?php } ?>
</div>
</div>
</div>
<!-- container END here -->
</header>
<!-- header END here -->
<!-- content START here -->
<div id="content">
<!-- container START here -->
<div class="container">
<!-- main-colum START here -->
<div id="full-width">
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" style="float:left;">
<a href="<?php the_permalink() ?>" rel="bookmark"><div class="portfolio"><?php the_post_thumbnail(); ?><br /><?php the_title(); ?></div></a>
</div>
<?php endwhile; ?>
<?php else : ?>
<h3>Not Found</h3>
<p>Try using the sidebar to navigate yor way around the site.</p>
<?php endif; ?>
<?php wp_pagenavi(); ?>
</div>
<!-- main-colum END here -->
</div>
<!-- container END here -->
</div>
<!-- content END here -->
</div>
<!-- site-wrapper END here -->
<?php get_footer(); ?>