K... here's my CPT:
register_post_type('web', array('label' => 'Websites','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => true,'rewrite' => array('slug' => 'portfolio/web', 'has_archive' => 'archive-web'),'query_var' => true,'menu_position' => 5,'supports' => array('title','thumbnail'),'labels' => array (
'name' => 'Websites',
'singular_name' => 'Website',
'menu_name' => 'Websites',
'add_new' => 'Add a Website',
'add_new_item' => 'Add a New Website',
'edit' => 'Edit',
'edit_item' => 'Edit Website',
'new_item' => 'New Website',
'view' => 'View Website',
'view_item' => 'View Website',
'search_items' => 'Search Websites',
'not_found' => 'No Websites Found',
'not_found_in_trash' => 'No Websites Found in Trash',
'parent' => 'Parent Website',
),) );
Here's my loop:
<?php $loop = new WP_Query( array( 'post_type' => 'web', 'posts_per_page' => 1 ) ); ?>
<?php if ( $loop->have_posts() ) : ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="portfolio-item">
<div class="portfolio-thumb"><a href="<?php the_permalink() ?>" rel="bookmark" title="Portfolio item: <?php the_title_attribute(); ?>"><?php the_post_thumbnail('portfolio-thumb'); ?></a></div>
<h4 class="portfolio-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Portfolio item: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
</div>
<?php endwhile; ?>
<?php wp_pagenavi( array( 'query' => $loop ) ); ?>
<?php wp_reset_postdata(); // reset the query ?>
<?php endif; ?>
I am using archive-{posttype}.php and am not using page templates. I'm trying to go 100% 3.1.
As you can see I want my CPT w/ the slug page/post-type and I don't know if this is the problem, but I have killed the page for testing and I still can't get pagination to work.
Please help!?!
Thanks