L
lennuc
Préstamo
Ni
Redactor
acabo de probar un theme nuevo y me aparece error y no me carga la otra parte y post del blog . este es el error:
Fatal error: Only variables can be passed by reference in /home/globo/public_html/wp-content/themes/theme/functions.php on line 14
en el functions.php este es la linea 14
y esta una parte de las lineas anteriores y posteriores del codigo a la linea 14
Fatal error: Only variables can be passed by reference in /home/globo/public_html/wp-content/themes/theme/functions.php on line 14
en el functions.php este es la linea 14
PHP:
$comments_by_type = &separate_comments(get_comments('post_id=' . $id));
y esta una parte de las lineas anteriores y posteriores del codigo a la linea 14
HTML:
10- add_filter('get_comments_number', 'comment_count', 0);
11-
12- function comment_count( $count ) {
13- global $id;
14- $comments_by_type = &separate_comments(get_comments('post_id=' 15- . $id));
16- return count($comments_by_type['comment']);
17- }