FastBots- သင်၏ AI Bot ကိုလေ့ကျင့်ရန်အတွက် စိတ်ကြိုက် WordPress XML ဆိုက်မြေပုံတစ်ခုတည်ဆောက်ပါ။
Martech Zone ထောင်ပေါင်းများစွာသော ဆောင်းပါးများပါရှိပြီး အများစုမှာ ခေတ်မမီတော့ပေ။ ဆောင်းပါးရာပေါင်းများစွာကို ဖယ်ရှားရန် သို့မဟုတ် အပ်ဒိတ်လုပ်ရန် ဆိုက်တွင် နှစ်အတော်ကြာ အလုပ်လုပ်ခဲ့ပြီးဖြစ်သော်လည်း ကျွန်ုပ်တွင် နောက်ထပ်များစွာ ကျန်ရှိသေးသည်။ တစ်ချိန်တည်းမှာပင်၊ ကျွန်ုပ်သည် ကျွန်ုပ်၏အကြောင်းအရာဖြင့် သဘာဝဘာသာစကား bot တစ်ခုကို လေ့ကျင့်ပေးလိုသည်၊ သို့သော် ကျွန်ုပ်လုပ်ဆောင်လိုသော နောက်ဆုံးအချက်မှာ ခေတ်မမီတော့သော ဆောင်းပါးများတွင် ၎င်းကို လေ့ကျင့်ရန်ဖြစ်သည်။
FastBots တစ်ဦးဖြစ်ပါတယ် GPT ချတ်- သင်၏ sitemap (သို့မဟုတ်အခြားရွေးချယ်စရာများ) ကိုအသုံးပြု၍ သင်အစပိုင်းတွင်လေ့ကျင့်နိုင်သောစွမ်းအားရှိသော bot builder ။ တိကျသောရက်စွဲမှစပြီး ပြင်ဆင်ထားသော ဆောင်းပါးများအားလုံးပါဝင်သည့် စစ်ထုတ်ထားသော ဆိုက်မြေပုံတစ်ခု လိုအပ်ပါသည်။ ထို့အပြင်၊ ကျွန်ုပ်သည် ကျွန်ုပ်၏ စာမျက်နှာများနှင့် ပါဝင်လိုပါသည်။ အတိုကောက် (စိတ်ကြိုက်ပို့စ်အမျိုးအစား)။ အမျိုးအစားများနှင့် တဂ်များအတွက် မော်ကွန်းစာမျက်နှာများ မပါဝင်ချင်ပါ သို့မဟုတ် ၎င်းသည် မော်ကွန်းတိုက်တစ်ခုလည်းဖြစ်သောကြောင့် ကျွန်ုပ်၏ပင်မစာမျက်နှာတွင် မရှိပါ။
ဤဆောင်းပါး၏အဆုံးတွင် ကျွန်ုပ်ပေးနေသောကုဒ်ကို အသုံးပြုခြင်း၊ စိတ်ကြိုက်ဖန်တီးနိုင်သော စိတ်ကြိုက် WordPress ပလပ်အင်တစ်ခုကို ငါတည်ဆောက်ခဲ့သည်။ XML ကို ပို့စ်တစ်ခုကို လွှင့်တင်တိုင်း အင်တိုက်အားတိုက် လန်းဆန်းစေသည့် ဆိုက်မြေပုံ။ ဆောင်းပါးတစ်ခုစီကို ကျွန်ုပ်ထုတ်ဝေလိုက်သောကြောင့် FastBots တွင် အလိုအလျောက်ပြန်လည်လေ့ကျင့်ရေးနည်းလမ်းမရှိသော်လည်း ၎င်းသည် ပလပ်ဖောင်းကိုအသုံးပြုခြင်းအတွက် ကောင်းမွန်သောအစပြုမှုတစ်ခုဖြစ်သည်။
sitemap သည် လေ့ကျင့်ရန် link အားလုံးကို တင်သွင်းသည်။ AI အောက်ခြေတွင်-
စာမျက်နှာအားလုံးကို ယခုတင်သွင်းထားပြီး၊ သင့် bot ကို သက်ဆိုင်ရာဒေတာများတွင် လေ့ကျင့်နိုင်ပါသည်။ သင့်တွင် သီးခြားစာမျက်နှာများကို ဖယ်ရှားရန် အခွင့်အရေးလည်းရှိသည်။ FastBots သည် ကျွန်ုပ်၏ AI bot ၏ အမှတ်တံဆိပ်ကို စိတ်ကြိုက်ပြင်ဆင်နိုင်စေပြီး ကျွန်ုပ်၏တုံ့ပြန်မှုတွင် သက်ဆိုင်ရာ ဆောင်းပါးတစ်ခုထံသို့ လင့်ခ်တစ်ခုကိုပင် ထည့်သွင်းခွင့်ပေးခဲ့သည်။ ပလပ်ဖောင်းတွင် ဦးဆောင်တောင်းဆိုမှုတစ်ခုလည်း ရှိပါသည်။
ပလက်ဖောင်းသည် အပြစ်ကင်းစင်စွာ အလုပ်လုပ်ပါသည်... သင်သည် ကျွန်ုပ်၏ bot ကို ဤနေရာတွင် စမ်းသပ်မောင်းနှင်နိုင်သည်-
launch Martech Zone's Bot၊ မာတီ သင်၏ FastBots AI Bot ကိုတည်ဆောက်ပါ။
စိတ်ကြိုက် XML ဆိုက်မြေပုံ
ဤလုပ်ဆောင်ချက်ကို ကျွန်ုပ်၏ အပြင်အဆင်တွင် ထည့်မည့်အစား၊ ကျွန်ုပ်သည် စိတ်ကြိုက်တစ်ခုကို တည်ဆောက်ခဲ့သည်။ WordPress Sitemap တစ်ခုတည်ဆောက်ရန် plugin ။ သင်၏ plugins ဖိုင်တွဲတွင် လမ်းညွှန်တစ်ခုထည့်ပါ၊ ထို့နောက် a PHP ကို အောက်ပါကုဒ်ဖြင့် ဖိုင်ကို
<?php
/*
Plugin Name: Bot Sitemap
Description: Dynamically generates an XML sitemap including posts modified since a specific date and updates it when a new article is added.
Version: 1.0
Author: Your Name
*/
// Define the date since when to include modified posts (format: Y-m-d)
$mtz_modified_since_date = '2020-01-01';
// Register the function to update the sitemap when a post is published
add_action('publish_post', 'mtz_update_sitemap_on_publish');
// Function to update the sitemap
function mtz_update_sitemap_on_publish($post_id) {
// Check if the post is not an auto-draft
if (get_post_status($post_id) != 'auto-draft') {
mtz_build_dynamic_sitemap();
}
}
// Main function to build the sitemap
function build_bot_sitemap() {
global $mtz_modified_since_date;
$args = array(
'post_type' => 'post',
'date_query' => array(
'column' => 'post_modified',
'after' => $mtz_modified_since_date
),
'posts_per_page' => -1 // Retrieve all matching posts
);
$postsForSitemap = get_posts($args);
// Fetch all 'acronym' custom post type posts
$acronymPosts = get_posts(array(
'post_type' => 'acronym',
'posts_per_page' => -1,
));
// Fetch all pages except the home page
$pagesForSitemap = get_pages();
$home_page_id = get_option('page_on_front');
$sitemap = '<?xml version="1.0" encoding="UTF-8"?>';
$sitemap .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
foreach($postsForSitemap as $post) {
setup_postdata($post);
if ($post->ID != $home_page_id) {
$sitemap .= '<url>'.
'<loc>'. get_permalink($post) .'</loc>'.
'<lastmod>'. get_the_modified_date('c', $post) .'</lastmod>'.
'<changefreq>weekly</changefreq>'.
'</url>';
}
}
foreach($acronymPosts as $post) {
setup_postdata($post);
if ($post->ID != $home_page_id) {
$sitemap .= '<url>'.
'<loc>'. get_permalink($post) .'</loc>'.
'<lastmod>'. get_the_modified_date('c', $post) .'</lastmod>'.
'<changefreq>weekly</changefreq>'.
'</url>';
}
}
foreach($pagesForSitemap as $page) {
setup_postdata($page);
if ($page->ID != $home_page_id) {
$sitemap .= '<url>'.
'<loc>'. get_permalink($page) .'</loc>'.
'<lastmod>'. get_the_modified_date('c', $page) .'</lastmod>'.
'<changefreq>monthly</changefreq>'.
'</url>';
}
}
wp_reset_postdata();
$sitemap .= '</urlset>';
file_put_contents(get_home_path().'bot-sitemap.xml', $sitemap);
}
// Activate the initial sitemap build on plugin activation
register_activation_hook(__FILE__, 'build_bot_sitemap');