The Latest Post
Uncategorized
Schema WebSite Gemini
By: Dwi YantiUntuk Functions.php Kode di perbaiki chat.deepseek.com add_action( ‘wp_head’, ‘gemini_homepage_with_posts_schema’ ); function gemini_homepage_with_posts_schema() { if ( is_front_page() || is_home() ) { // Ambil data user admin pertama $admin_user = get_users(array( ‘role’ => ‘administrator’, ‘number’ => 1 )); $user_data = !empty($admin_user) ? $admin_user[0] : null; // Ambil data user $user_name = $user_data ? $user_data->display_name : ‘Nama Anda’; […]
Uncategorized
WebPage Schema MyBlogs
By: Dwi YantiWEBPAGE SCHEMA DWIYANTI.com // SCHEMA WEBPAGE function add_webpage_schema() { if (!is_page()) { return; } global $post; // ========== DATA DASAR ========== $title = get_the_title($post); $url = get_permalink($post); $published = get_the_date(‘c’, $post); $modified = get_the_modified_date(‘c’, $post); $description = get_optimized_meta_description(); // Dari fungsi yang sudah ada $site_icon = get_site_icon_url(); // ========== AMBIL SEMUA GAMBAR (UNIVERSAL) ========== $images […]
Uncategorized
Schema di Blog DwiYanti.com
By: Dwi YantiSchema Website sebelum perubahan // Schema Markup Website utk frontpage function add_front_page_schema() { if (is_home() || is_front_page()) { global $post; $url = home_url(); $site_name = get_bloginfo(‘name’); $description = get_bloginfo(‘description’); // Ambil konten halaman front-page $content = isset($post->post_content) ? $post->post_content : ”; $images = []; // Ambil hingga 3 gambar dari konten front page preg_match_all(‘/]+src=[“\’]([^”\’]+)[“\’]/i’, $content, […]
Uncategorized
Schema BlogPosting web DwiYanti.com
By: Dwi YantiSCHEMA BLOGPOSTING DENGAN MENAMPILKAN SEMUA IMAGE YANG ADA DI <?php the_content(); ?> TAPI CODE IMAGE DI SEKITAR H1 TIDAK AKAN MUNCUL // SCHEMA BLOGPOSTING function add_blogposting_schema() { if (!is_single()) { return; } global $post; // ========== DATA DASAR ========== $title = get_the_title($post); $url = get_permalink($post); $published = get_the_date(‘c’, $post); $modified = get_the_modified_date(‘c’, $post); $description = […]
Uncategorized
Schema Image Universal
By: Dwi Yanti/* Schema Image Object hanya muncul di post dan Page */ function add_all_images_schema_universal() { // Cek apakah ini post ATAU page if (!is_page()) { return; } // Ambil semua gambar dari konten $content = get_post_field(‘post_content’, get_the_ID()); preg_match_all(‘/]+src=”([^”]+)”/i’, $content, $matches); if (empty($matches[1]) && !has_post_thumbnail()) { return; } $images = array(); // Featured image if (has_post_thumbnail()) { […]
Uncategorized
Meta Description Custom Field WordPress
By: Dwi YantiPERBEDAAN META TITLE, H1, META DESCRIPTION, DAN EXPERT DI EDITOR WORDPRESS —– Solusi: Buat Meta Description Custom Field + Kembalikan Excerpt ke Fungsi Semula Baik, saya akan berikan kode lengkapnya. Anda ingin: 1. ✅ Meta description CUSTOM (seperti meta title) 2. ✅ Excerpt kembali ke fungsi semula (untuk tampilan di blog, bukan untuk meta) Berikut […]
Page 1 of 8
