Tag Info

New answers tagged

0

I'll put my money to it and say it has something to do with this line 'eventDisplay' => 'all', Can't make sense of what this line actually do. I would just remove it. Also, just a tip, do not use hyphens (-) in taxonomy or custom post type names. They will definitely be troublesome if it comes to custom templates. If you must, use an underscore (_) ...


2

Found problem. I replaced: $posts = $query->get_posts(); with: $posts = array(); if ($query->have_posts()){ while ($query->have_posts()){ $query->next_post(); array_push($posts, $query->post); } } And everything is working now.



Top 50 recent answers are included