Hi
I'm having issues with the functions.php file with variables
$prev_dept = 0;
$comment_count = 0;
$comment_index = 0;
function setCommentCount($size){
$comment_count = $size;
}
function flowhub_comment($comment, $args, $depth) {
$comment_index ++;
if($depth > 1) {
$line = true;
}
echo '$prev_dept:' . $prev_dept.'<br>';
}
I can't access $comment_index so I can't set nor get it from within a function. What should I do to fix this?
Yours truthfully