"Fix" for empty Project since 0.5.4 update

This topic contains 1 reply and 2 voices, and was last updated by Nayem 9 years, 9 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
February 6, 2015 at 1:44 pm 35942
Nayem class CPM_Project function get_projects is returning an array that contains a non WP_Post object. This causes the foreach loop in \wp-content\plugins\wedevs-project-manager-frontend\frontend.php at line 317 to run an iteration on a non post object thus outputting the empty Project HTML. CPM_Project should be fixed, but a hack workaround is to add an if condition as shown below after line 317 in frontend.php.
foreach ($projects as $project) {
  if( get_class($project) != 'WP_Post' ) continue;
Hope this helps someone...
February 7, 2015 at 1:13 pm 36014
Nayem Nayem

Hello Sean,

Thank you very much for your contribution.

Viewing 1 Posts - 1 through 1 (of 1 total)