3

I try to make my files as small as possible and wonder why the following php code works in my Wordpress Installation

<?php 
    $mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true);
?>

and the following (same) php code not

<?php $mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true); ?>

When i put the code in one row, my site gets blank. No Error or else in the firebug console. It is a new WP Installation and there is no conflict between plugins. The installation is on a Apache Server and runs the latest PHP 7 version. Any idea how to fix this problem or why this happens?

evavienna
  • 1,059
  • 11
  • 29

0 Answers0