WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Custom post type and navigation (3 posts)

  1. Alex Z
    Member
    Posted 1 year ago #

    Hello!
    I use this code to show custom posts:
    <?php $loop = new WP_Query(array('post_type' => 'products', 'posts_per_page' => 1, 'category_name'=>'beds')); ?>

    posts_per_page => 1 is to show navigation, because I got 2 test posts.

    And then classical
    <?php next_posts_link('Previous') ?> <?php previous_posts_link('Next') ?> etc.

    But I havn't any navigation yet.
    Where am I wrong?

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Ever find a solution for this alexzhimuk?

  3. Alex Z
    Member
    Posted 1 year ago #

    Found already.
    I used query_posts instead new WP_Query.
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.