Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author hijiri

    (@hijiri)

    Hi, Agence Myso

    Please tell me what you set the parameters in any code specifically .

    Thanks.

    Thread Starter Agence Myso

    (@agence-myso)

    Hello,

    I use the common get_posts query with those parameters :

    $videos = array(
                    'posts_per_page' => -1,
                    'post_type' => 'video',
                    'category' => $category_id,
                    'orderby' => 'menu_order',
                    'order' => 'DESC'
                );
                $cat_posts = get_posts( $videos );
                    foreach ( $cat_posts as $post ) : setup_postdata( $post );
    Thread Starter Agence Myso

    (@agence-myso)

    I also tried the get_adjacent_post function, which does not work the right way. It retrieves previous post instead of next post… The contrary is also true.

    Plugin Author hijiri

    (@hijiri)

    In my development environment , it seems to be working well in your code.
    I verify it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with get_posts’ is closed to new replies.