sitecrafting / conifer

:evergreen_tree: A powerful WordPress library plugin for OO development
https://www.coniferplug.in
MIT License
18 stars 2 forks source link

Default search errors when using post::get_all() #112

Open acobster opened 5 years ago

acobster commented 5 years ago

Original issue reported here: https://github.com/sitecrafting/groot/issues/34

Fatal error: Uncaught TypeError: Return value of Conifer\Post\Post::get_all() must be of the type array, null returned in /app/wp-content/plugins/conifer/lib/Conifer/Post/Post.php on line 348

Using Timber::get_posts() instead resolves the search issues