Forum Replies Created

Viewing 1 replies (of 1 total)
  • John,

    I too am experiencing this on a custom post type. Here is my var_dump:

    object(stdClass)#5759 (29) { ["ID"]=> int(0) ["post_status"]=> string(5) "draft" ["post_author"]=> int(0) ["post_parent"]=> int(0) ["post_type"]=> string(4) "page" ["post_date"]=> int(0) ["post_date_gmt"]=> int(0) ["post_modified"]=> int(0) ["post_modified_gmt"]=> int(0) ["post_content"]=> string(0) "" ["post_title"]=> string(0) "" ["post_excerpt"]=> string(0) "" ["post_content_filtered"]=> string(0) "" ["post_mime_type"]=> string(0) "" ["post_password"]=> string(0) "" ["post_name"]=> string(0) "" ["guid"]=> string(0) "" ["menu_order"]=> int(0) ["pinged"]=> string(0) "" ["to_ping"]=> string(0) "" ["ping_status"]=> string(0) "" ["comment_status"]=> string(6) "closed" ["comment_count"]=> int(0) ["is_404"]=> bool(false) ["is_page"]=> bool(false) ["is_single"]=> bool(false) ["is_archive"]=> bool(false) ["is_tax"]=> bool(false) ["filter"]=> string(3) "raw" } object(stdClass)#5759 (29) { ["ID"]=> int(0) ["post_status"]=> string(5) "draft" ["post_author"]=> int(0) ["post_parent"]=> int(0) ["post_type"]=> string(4) "page" ["post_date"]=> int(0) ["post_date_gmt"]=> int(0) ["post_modified"]=> int(0) ["post_modified_gmt"]=> int(0) ["post_content"]=> string(0) "" ["post_title"]=> string(0) "" ["post_excerpt"]=> string(0) "" ["post_content_filtered"]=> string(0) "" ["post_mime_type"]=> string(0) "" ["post_password"]=> string(0) "" ["post_name"]=> string(0) "" ["guid"]=> string(0) "" ["menu_order"]=> int(0) ["pinged"]=> string(0) "" ["to_ping"]=> string(0) "" ["ping_status"]=> string(0) "" ["comment_status"]=> string(6) "closed" ["comment_count"]=> int(0) ["is_404"]=> bool(false) ["is_page"]=> bool(false) ["is_single"]=> bool(false) ["is_archive"]=> bool(false) ["is_tax"]=> bool(false) ["filter"]=> string(3) "raw" }

    To fix this, I updated these lines (Line 358 on class.bcn_breadcrumb_trail.php):

    protected function do_post(WP_Post $post)
    {

    and changes to:

    protected function do_post($post)
    {
    if (get_class($post) != “WP_Post”) return;

    This resolved issues for me.

Viewing 1 replies (of 1 total)