Error in archive.php

  • Anonymous

    #10343

    Notice: Trying to get property of non-object in /wp-content/themes/franz-josef/archive.php on line 22

    <?php if ( $term->description ) echo wpautop( $term->description ); ?>

    should be

    <?php if ( $term && $term->description ) echo wpautop( $term->description ); ?>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.