Error in archive.php

  • Anonymous


    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.

Do NOT follow this link or you will be banned from the site!