Explore all the pages we have on our website. Find information about our services, company, and more.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.' . esc_html__('Your demo import has been completed successfully.', 'blogger-hub') . '
'; echo '' . esc_html__('VIEW SITE', 'blogger-hub') . ''; //end //Topbar set_theme_mod( 'blogger_hub_category_hide', true ); set_theme_mod( 'blogger_hub_facebook_url', 'https://www.facebook.com/' ); set_theme_mod( 'blogger_hub_twitter_url', 'https://twitter.com/' ); set_theme_mod( 'blogger_hub_insta_url', 'https://www.instagram.com/' ); set_theme_mod( 'blogger_hub_linkdin_url', 'https://www.linkedin.com/' ); set_theme_mod( 'blogger_hub_youtube_url', 'https://www.instagram.com/' ); // Set Header Image $header_image_url = get_template_directory_uri() . '/images/banner.png'; // Download the image and get the attachment ID $header_image_id = media_sideload_image($header_image_url, 0, null, 'id'); if (!is_wp_error($header_image_id)) { // Get the full image URL from the attachment $header_image_src = wp_get_attachment_image_src($header_image_id, 'full'); if (!empty($header_image_src[0])) { // Set the header image using the theme mod set_theme_mod('header_image', esc_url_raw($header_image_src[0])); } } // Set site title and tagline set_theme_mod('blogger_hub_show_tagline', true); update_option('blogname', 'Journey'); update_option('blogdescription', 'Welcome To Blog Theme'); //Category Section set_theme_mod( 'blogger_hub_section_title', 'Recent Post' ); set_theme_mod( 'blogger_hub_metafields_share_link', true ); // Set the theme mod for the default category set_theme_mod('blogger_hub_our_category', 'postcategory1'); // Define post category names and post titles $blogger_hub_category_names = ['postcategory1', 'postcategory2', 'postcategory3']; $blogger_hub_title_array = [ ["FEATURES TITLE 1", "FEATURES TITLE 2"], ["FEATURES TITLE 1", "FEATURES TITLE 2"], ["FEATURES TITLE 1", "FEATURES TITLE 2"] ]; $blogger_hub_content_array = [ [ "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet", "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet", ], [ "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet", "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet" ], [ "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet", "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque delectus, quidem id ratione consequatur eveniet" ] ]; foreach ($blogger_hub_category_names as $blogger_hub_index => $blogger_hub_category_name) { // Create or retrieve the post category term ID $blogger_hub_category_term = term_exists($blogger_hub_category_name, 'category'); if (!$blogger_hub_category_term) { $blogger_hub_category_term = wp_insert_term($blogger_hub_category_name, 'category'); } if (is_wp_error($blogger_hub_category_term)) { error_log('Error creating category: ' . $blogger_hub_category_term->get_error_message()); continue; // Skip if category creation fails } $blogger_hub_category_id = isset($blogger_hub_category_term['term_id']) ? (int)$blogger_hub_category_term['term_id'] : $blogger_hub_category_term; for ($blogger_hub_i = 0; $blogger_hub_i < 2; $blogger_hub_i++) { // Ensure the required data exists if (empty($blogger_hub_title_array[$blogger_hub_index][$blogger_hub_i]) || empty($blogger_hub_content_array[$blogger_hub_index][$blogger_hub_i])) { continue; // Skip if title or content is missing } // Create the post $blogger_hub_post_data = [ 'post_title' => wp_strip_all_tags($blogger_hub_title_array[$blogger_hub_index][$blogger_hub_i]), 'post_content' => $blogger_hub_content_array[$blogger_hub_index][$blogger_hub_i], 'post_status' => 'publish', 'post_type' => 'post', // Default WordPress post type ]; $blogger_hub_post_id = wp_insert_post($blogger_hub_post_data); if (is_wp_error($blogger_hub_post_id)) { error_log('Error creating post: ' . $blogger_hub_post_id->get_error_message()); continue; // Skip if post creation fails } // Assign category to the post wp_set_post_categories($blogger_hub_post_id, [$blogger_hub_category_id]); // Handle the featured image $blogger_hub_image_url = get_template_directory_uri() . '/images/feature' . ($blogger_hub_i + 1) . '.png'; $blogger_hub_image_id = media_sideload_image($blogger_hub_image_url, $blogger_hub_post_id, null, 'id'); if (is_wp_error($blogger_hub_image_id)) { error_log('Error downloading image: ' . $blogger_hub_image_id->get_error_message()); continue; // Skip if image download fails } // Set the featured image set_post_thumbnail($blogger_hub_post_id, $blogger_hub_image_id); } } //Copyright Text set_theme_mod( 'blogger_hub_footer_text', 'By Themesglance' ); } ?>