conflict with 'get_category_parents' function (1 post)

  1. Clifford Paulick
    Posted 4 years ago #

    With the plugin activated (that's the ONLY thing I changed), I get this error message on a 'single' post:

    Catchable fatal error: Object of class WP_Error could not be converted to string in ...edited...out.../functions/breadcrumbs.php on line 32

    The conflicting function: http://codex.wordpress.org/Function_Reference/get_category_parents

    This is the 'line 32':
    echo '<li> » '. get_category_parents( $category_id, TRUE, " » " );
    If I change it to this, with the Plugin activated, it displays 'Home > 1' but at least the 'single' post doesn't break:
    echo '<li> » '. 1/* get_category_parents( $category_id, TRUE, " » " ) */;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Like-Button-Plugin-For-Wordpress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Clifford Paulick
  • This topic is not resolved
  • WordPress version: 3.2.1