All I need was to use global variable before the declaration AND before echoing.
<?php global $postidextra; $postidextra = "20"; ?>
and then
<?php global $postidextra; echo $postidextra; ?>
Thanks G.M. for the idea.
All I need was to use global variable before the declaration AND before echoing.
<?php global $postidextra; $postidextra = "20"; ?>
and then
<?php global $postidextra; echo $postidextra; ?>
Thanks G.M. for the idea.