Plugin Author
hijiri
(@hijiri)
Hi, Agence Myso
Please tell me what you set the parameters in any code specifically .
Thanks.
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 );
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.