mangomatic_create_robots

The MangoMatic (Responsive) mangomatic create robots function.

Description

mangomatic_create_robots( $content ); 

Parameters (1)

0. $content
The content.

Usage

  1. if ( !function_exists( 'mangomatic_create_robots' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mangomatic_create_robots($content); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function mangomatic_create_robots($content) { 
  2. if (thematic_seo()) { 
  3. if((is_home() && ($paged < 2 )) || is_front_page() || is_single() || is_page() || is_attachment()) { 
  4. $content = ""; 
  5. } elseif (is_search()) { 
  6. $content = "\t"; 
  7. $content .= "<meta name=\"robots\" content=\"noindex, nofollow\" />"; 
  8. $content .= "\n\n"; 
  9. } else { 
  10. $content = "\t"; 
  11. $content .= "<meta name=\"robots\" content=\"noindex, follow\" />"; 
  12. $content .= "\n\n"; 
  13. return $content;