Support » Plugin: Members » PHP Notice: Trying to get property ‘post_parent’ of non-object in…

  • Saw this PHP notice, not sure if it’s as easy as checking the result of get_post( $post_id ) first.

    line 95: $parent_id = get_post( $post_id )->post_parent;

    PHP Notice: Trying to get property ‘post_parent’ of non-object in /wordpress/wp-content/plugins/members/inc/template.php on line 95

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.