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.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
'; // Create post object $advance_blogging_my_post = array( 'post_title' => wp_strip_all_tags( $advance_blogging_slider_title ), 'post_content' => $advance_blogging_slider_content, 'post_status' => 'publish', 'post_type' => 'page', ); // Insert the post into the database $advance_blogging_post_id = wp_insert_post( $advance_blogging_my_post ); if ($advance_blogging_post_id) { // Set the theme mod for the slider page set_theme_mod('advance_blogging_slider_page' . $advance_blogging_i, $advance_blogging_post_id); $advance_blogging_image_url = get_template_directory_uri().'/images/blog-banner'.$advance_blogging_i.'.png'; $advance_blogging_image_id = media_sideload_image($advance_blogging_image_url, $advance_blogging_post_id, null, 'id'); if (!is_wp_error($advance_blogging_image_id)) { // Set the downloaded image as the post's featured image set_post_thumbnail($advance_blogging_post_id, $advance_blogging_image_id); } } } //Category Post set_theme_mod( 'advance_blogging_blogcategory_setting', 'category1' ); $advance_blogging_category_names = array('category1', 'category2', 'category3', 'category4'); $advance_blogging_title_array = array( array("AWESOME HAIRSTYLE FASHION TREND", "SNOWING IN MY TOWN AFTER A LONG TIME"), array("AWESOME HAIRSTYLE FASHION TREND", "SNOWING IN MY TOWN AFTER A LONG TIME"), array("AWESOME HAIRSTYLE FASHION TREND", "SNOWING IN MY TOWN AFTER A LONG TIME"), array("AWESOME HAIRSTYLE FASHION TREND", "SNOWING IN MY TOWN AFTER A LONG TIME") ); foreach ($advance_blogging_category_names as $advance_blogging_index => $advance_blogging_category_name) { // Create or retrieve the post category term ID $advance_blogging_term = term_exists($advance_blogging_category_name, 'category'); if ($advance_blogging_term === 0 || $advance_blogging_term === null) { // If the term does not exist, create it $advance_blogging_term = wp_insert_term($advance_blogging_category_name, 'category'); if (is_wp_error($advance_blogging_term)) { error_log('Error creating category: ' . $advance_blogging_term->get_error_message()); continue; // Skip to the next iteration if category creation fails } } // Iterate over the post titles for each category for ($advance_blogging_i = 0; $advance_blogging_i < 2; $advance_blogging_i++) { // Create post content $advance_blogging_title = $advance_blogging_title_array[$advance_blogging_index][$advance_blogging_i]; $advance_blogging_content = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard'; // Create post object $advance_blogging_my_post = array( 'post_title' => wp_strip_all_tags($advance_blogging_title), 'post_content' => $advance_blogging_content, 'post_status' => 'publish', 'post_type' => 'post', // Post type set to 'post' ); // Insert the post into the database $advance_blogging_post_id = wp_insert_post($advance_blogging_my_post); if (is_wp_error($advance_blogging_post_id)) { error_log('Error creating post: ' . $advance_blogging_post_id->get_error_message()); continue; // Skip to the next post if creation fails } // Assign the category to the post wp_set_post_categories($advance_blogging_post_id, array((int)$advance_blogging_term['term_id'])); // Handle the featured image using media_sideload_image $advance_blogging_image_url = get_template_directory_uri() . '/images/banner-image' . ($advance_blogging_i + 1) . '.png'; $advance_blogging_image_id = media_sideload_image($advance_blogging_image_url, $advance_blogging_post_id, null, 'id'); if (is_wp_error($advance_blogging_image_id)) { error_log('Error downloading image: ' . $advance_blogging_image_id->get_error_message()); continue; // Skip to the next post if image download fails } // Assign featured image to post set_post_thumbnail($advance_blogging_post_id, $advance_blogging_image_id); } } //Latest Post set_theme_mod( 'advance_blogging_latest_post_setting', 'latestcategory1' ); $advance_blogging_category_names = array('latestcategory1', 'latestcategory2', 'latestcategory3', 'latestcategory4'); $advance_blogging_title_array = array( array("BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE", "BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE"), array("BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE", "BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE"), array("BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE", "BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE"), array("BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE", "BEST VIMEO CHANNELS FOR MEN'S FASHION & STYLE") ); foreach ($advance_blogging_category_names as $advance_blogging_index => $advance_blogging_category_name) { // Create or retrieve the post category term ID $advance_blogging_term = term_exists($advance_blogging_category_name, 'category'); if ($advance_blogging_term === 0 || $advance_blogging_term === null) { // If the term does not exist, create it $advance_blogging_term = wp_insert_term($advance_blogging_category_name, 'category'); if (is_wp_error($advance_blogging_term)) { error_log('Error creating category: ' . $advance_blogging_term->get_error_message()); continue; // Skip to the next iteration if category creation fails } } // Iterate over the post titles for each category for ($advance_blogging_i = 0; $advance_blogging_i < 2; $advance_blogging_i++) { // Create post content $advance_blogging_title = $advance_blogging_title_array[$advance_blogging_index][$advance_blogging_i]; $advance_blogging_content = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard'; // Create post object $advance_blogging_my_post = array( 'post_title' => wp_strip_all_tags($advance_blogging_title), 'post_content' => $advance_blogging_content, 'post_status' => 'publish', 'post_type' => 'post', // Post type set to 'post' ); // Insert the post into the database $advance_blogging_post_id = wp_insert_post($advance_blogging_my_post); if (is_wp_error($advance_blogging_post_id)) { error_log('Error creating post: ' . $advance_blogging_post_id->get_error_message()); continue; // Skip to the next post if creation fails } // Assign the category to the post wp_set_post_categories($advance_blogging_post_id, array((int)$advance_blogging_term['term_id'])); // Handle the featured image using media_sideload_image $advance_blogging_image_url = get_template_directory_uri() . '/images/blog-service-image' . ($advance_blogging_i + 1) . '.png'; $advance_blogging_image_id = media_sideload_image($advance_blogging_image_url, $advance_blogging_post_id, null, 'id'); if (is_wp_error($advance_blogging_image_id)) { error_log('Error downloading image: ' . $advance_blogging_image_id->get_error_message()); continue; // Skip to the next post if image download fails } // Assign featured image to post set_post_thumbnail($advance_blogging_post_id, $advance_blogging_image_id); } } //Copyright Text set_theme_mod( 'advance_blogging_footer_copy', 'By ThemesCaliber' ); // Set the demo import completion flag update_option('advance_blogging_demo_import_completed', true); // Display success message and "View Site" button echo '' . esc_html__('Your demo import has been completed successfully.', 'advance-blogging') . '
'; echo '' . esc_html__('VIEW SITE', 'advance-blogging') . ''; } ?>