0, 'exclude' => 1 ) ); $category_lists = array(); $category_lists[''] = '--Choose--'; foreach($categories as $category) : $category_lists[$category->term_id] = $category->name; endforeach; return $category_lists; } function enlighten_post_lists(){ wp_reset_postdata(); $posts = get_posts(array('posts_per_page' => -1)); $post_lists = array(); $post_lists[''] = esc_html__('Select post', 'enlighten'); foreach($posts as $post) : $post_lists[$post->ID] = $post->post_title; endforeach; return $post_lists; } function enlighten_header_social_link(){ $social_link = array('facebook','twitter','youtube','pinterest','instagram','linkedin','googleplus','flickr'); foreach($social_link as $social_links){ $social_links_val = get_theme_mod('enlighten_'.$social_links.'_text'); if($social_links == 'googleplus'){ if($social_links_val){ echo '