I seem to be having issues getting the items in an array:
header.php
<?php
$arr_Visited = array("V" => "2");
?>
single.php
<?php
var_dump($arr_Visited);
?>
Which gives me this error:
Notice: Undefined variable: arr_Visited in /Applications/MAMP/htdocs/wp-content/themes/new_theme/single.php on line 4
Which is this var_dump($arr_Visited);
however when I add var_dump($arr_Visited); under the array decleration in the header.php file it works:
array(1) { ["v"]=> string(1) "2" }
Am I missing something blatantly obvious?