WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
Did not work (2 posts)

2 stars
  1. jordan314
    Member
    Posted 1 year ago #

    I created an 'ourteamsection' section for our custom post types and used this code:
    $args = array( 'post_type' => 'our-team', 'posts_per_page' => 100, 'section' => 'ourteamsection' );
    $loop = new WP_Query( $args );
    but it didn't work. I also tried just:
    $args = array( 'section' => 'ourteamsection' );
    But it showed every kind of post even though I specified only our-team post types in the section. I browsed the support forums and several other people had this problem. Had much better luck with the "Intuitive post order" plugin.

  2. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    You need to do like this :

    query_posts('section_name=ourteamsection');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.