error in functions.php
-
Hi, I’m trying to add custom function is_child to functions.php file
and I’m getting the error:
Parse error: syntax error, unexpected T_FUNCTION in /home/content/45/7069945/html/wp-content/themes/mountain-dawn/functions.php on line 8this is my functions.php
<?php if ( function_exists('register_sidebars') ) register_sidebars(2); Remove_action('wp_head', 'wp_generator'); function is_child($parent) { global $wp_query; if ($wp_query->post->post_parent == $parent) { $return = true; } else { $return = false; } return $return; } ?>any suggestion?
The topic ‘error in functions.php’ is closed to new replies.