Fatal error: Can't use function return value in write context in archive.php
-
I got this error:
Fatal error: Can’t use function return value in write context archive.php
It was introduced on line 36 in archive.php
Fixed it by replacing:
<?php if ( ! empty( tag_description() ) ) { echo apply_filters( 'tag_archive_meta', tag_description() ); } ?>
with
<?php $m_tag_description = tag_description(); if ( ! empty( $m_tag_description ) ) { echo apply_filters( 'tag_archive_meta', tag_description() ); } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fatal error: Can't use function return value in write context in archive.php’ is closed to new replies.