web_dor_update_hompage_settings

The Business Responsive web dor update hompage settings function.

Description

web_dor_update_hompage_settings(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_update_hompage_settings() 
  2. /** 
  3. global $options_homepage; 
  4.   
  5. foreach ($options_homepage as $value) { 
  6.   
  7. if (get_theme_mod( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_theme_mod( $value['id'] ); } 
  8.   
  9. var_dump($options_homepage); 
  10. global $post; 
  11. $arr = get_post_meta($post->ID, '_arr', TRUE); 
  12. $cats = get_categories('hide_empty=0'); 
  13. $cat_query=""; 
  14. foreach ($cats as $categs) { 
  15. $str = "cat".$categs->cat_ID; 
  16. if ($str) { 
  17. $cat_query.=$categs->cat_ID.", "; 
  18. }  
  19. $temp = $wp_query; 
  20. $wp_query= null; 
  21. $wp_query = new WP_Query(); 
  22. $wp_query->query('showposts='.($_n_of_home_post).'&paged='.$paged.'&cat='.$cat_query);*/