Home Forums Plugin Support WP Project Manager Pro "Fix" for empty Project since 0.5.4 update

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 4 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35942

    Post count: 12

    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…


    Post count: 6480

    Hello Sean,

    Thank you very much for your contribution.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘"Fix" for empty Project since 0.5.4 update’ is closed to new replies.