• Resolved muisz

    (@muisz)


    $data = array(
                'posts_per_page' => -1,
                'post_type' => 'events'
            );            
               
               $posts = get_posts($data);
               
                 echo '<pre>'; 
                 print_r($data);
                 print_r($posts);
                exit;  

    Gives not a sorted list in an AJAX call. However the same code does on a ‘normal’ request.

    • This topic was modified 6 years, 11 months ago by muisz.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Not working in AJAX call’ is closed to new replies.