Hi Tobias,
thank you for the fast reply. I tried the global but in the template file. Obviously it was the wrong place.
Thank you very much!
Cheers
bb
Hi Tobias,
oh yes you’re right. Where I can edit my first post?
Here is my code (simplified):
<?php
/*
Template Name: Konf
*/
?>
<?php
$countobject1 = $_POST['object1'];
if ($countobject1 == ''){
$countobject1 = '1';
}
$countobject2 = $_POST['object2'];
if ($countobject2 == ''){
$countobject2 = '1';
}
$count_offn = $countobject1 + $countobject2;
?>
.... etc. ...
After that I get the page content (table via tablepress and the php extension). Within this table is written:
<?php echo $count_offn; ?>
In debug mode I get this error:
Notice: Undefined variable: count_offn in /Applications/MAMP/htdocs/XXX/wp-content/plugins/tablepress-php-in-tables/tablepress-php-in-tables.php(26) : eval()'d code on line 1
Cheers & Thx
bbthoms