Click here to Skip to main content
15,891,021 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Notice: Undefined index: blogger in /home/bfcnewsi/public_html/wp-content/themes/Newspaper/functions.php on line 197
JavaScript
function blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
}
 
add_filter('query_vars', 'blogger_query_vars_filter');
 
function blogger_template_redirect() {
  global $wp_query;
  $blogger = $wp_query->query_vars['blogger'];
  if ( isset ( $blogger ) ) {
    wp_redirect( get_wordpress_url ( $blogger ) , 301 );
    exit;
  }
}


What I have tried:

Please help me, i not a web developer but want to learn to fix these problems
Posted
Updated 2-Jul-20 12:55pm
v2
Comments
MadMyche 2-Jul-20 18:57pm    
And which line is $197?

1 solution

Quote:
Please help me, I not a web developer but want to learn to fix these problems

It is an impossible question.
Quote:
Notice: Undefined index: blogger in /home/bfcnewsi/public_html/wp-content/themes/Newspaper/functions.php on line 197

This is where the problem became apparent, not where the problem comes from.
All we can see is that the code try to use something that does not exist.
Quote:
Please help me, i not a web developer but want to learn to fix these problems

The only way is to learn programming web sites.
W3Schools Online Web Tutorials[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900