Forum Replies Created

Viewing 1 replies (of 1 total)
  • I need help on this too! It’s driving me nuts .. I used a plugin (Custom Post Type Manager) to create custom post types.

    These new post types can be displayed in a template, but the template/custom post types are registering with wordpress as posts – not pages, so: pagination is not working (it shouldn’t, as mentioned here).

    I’m looking for a way to use pagination with the wordpress query_posts() function or even a more custom loop – such as using SQL to pull from the database (like here) outside of a page template.

    Hope somebody can help, thanks!

    Here’s an example of my code:

    <?php $args = array(
    	'posts_per_page' => 10,
    	'post_type' => 'post',
    	'post_status' => 'publish',
    	'cat' => 2
    );
    $myposts = query_posts($args);
    foreach($myposts as $post) : setup_postdata($post); ?>
    	<h3><?php the_title(); ?></h3>
    <?php endforeach; ?>

    [Please post code snippets between backticks or use the code button.]

Viewing 1 replies (of 1 total)