Onjezerani Chakudya Chakunja cha Podcast ku Ma feed Anu a WordPress Site

Ntchito Zogulitsa Podcast za WordPress

Podcast yotchuka pa intaneti imagwiritsa ntchito WordPress monga nsanja yawo yosindikizira kuti adziwe zambiri za podcast yawo komanso kusindikiza zidziwitso za chiwonetsero chilichonse. Komabe, amakhala ndi podcast yokha pa injini yakunja yosungira ma podcast. Ndiwosokonekera kwa alendo atsambali - koma ilibe chinthu chimodzi chomwe sichimawoneka kwa ogwiritsa ntchito koma chowonekera kwa omwe amakonda ngati Google.

Google ikutchula izi pothandizira:

Kuphatikiza apo, ngati mungayanjane ndi RSS feed yanu ndi tsamba lofikira, ogwiritsa ntchito omwe akusaka podcast yanu atha kupeza mafotokozedwe a podcast yanu komanso ma carousel of episodes pazowonetsa kwanu pa Google Search. Ngati simukupereka tsamba lofikira, kapena Google singaganize tsamba lanu lofikira, magawo anu akhoza kuwonekerabe muzotsatira za Google Search, koma amangogawika ndimagawo ochokera kuma podcast ena pamutu womwewo.

Google - Pezani podcast yanu pa Google

 Ndi awiri omwe akuphatikizidwa, mutha kupeza chithunzi chabwino mu Google:

Ma Podcast pa Google SERP

Kukuwa kwa tsambali kumawulula zolemba pamabulogu, koma osati zenizeni chakudya cha podcast - yomwe imasungidwa kunja. Kampaniyo ikufuna kusunga mabulogu ake apano, chifukwa chake tikufuna kuwonjezera zowonjezera patsamba lino. Umu ndi momwe:

  1. Tiyenera kulemba a chakudya chatsopano mkati mwa mutu wawo wa WordPress.
  2. Tikuyenera pezani ndikufalitsa chakudya chakunja cha podcast mu chakudya chatsopanocho.
  3. Tikuyenera onjezani ulalo pamutu ya tsamba la WordPress lomwe likuwonetsa ulalo watsopano wodyetsa.
  4. Bonasi: Tiyenera kuyeretsa ulalo watsopano wa podcast kotero kuti sitiyenera kudalira mafunso ndi kuthekera lembaninso njirayo mu URL yabwino.

Momwe Mungapangire Chakudya Chatsopano ku WordPress

Mukamutu kanu kapena (kolimbikitsidwa) fayilo yamutu wa ana.php, mudzafuna kuwonjezera chakudya chatsopano ndikuuza WordPress momwe mungamangire. Chidziwitso chimodzi pa izi ... chiziwonetsa chakudya chatsopano ku https://yoursite.com/?feed=podcast

function add_podcast_feed() {
    add_feed( 'podcast', 'render_podcast_feed' );
}
add_action( 'init', 'add_podcast_feed' );

Pezani Zowonjezera Podcast ndikuzifalitsa mu WordPress feed

Tidauza WordPress kuti titulutsa podcast pogwiritsa ntchito perekani_podcast_feed, kotero tsopano tikufuna kupeza chakudya chakunja (chotchedwa https: //yourexternalpodcast.com/feed/ mu ntchito ili m'munsiyi ndikuibwereza mkati mwa WordPress panthawi yofunsayo. Cholemba chimodzi ... WordPress idzasokoneza yankho.

function render_podcast_feed() {
    header( 'Content-Type: application/rss+xml' );
    $podcast = 'https://yourexternalpodcast.com/feed/';
    
    $response = wp_remote_get( $podcast );
        try {
            $podcast_feed = $response['body'];

        } catch ( Exception $ex ) {
            $podcast_feed = null;
        } // end try/catch
 
    echo $podcast_feed;
} 

Lembani Zakudya Zanu Zatsopano ku URL Yabwino

Nayi bonasi pang'ono. Kumbukirani momwe chakudya chimasindikizidwira ndi funso? Titha kuwonjezera lamulo lolembanso ku works.php kuti tisinthe ndi ulalo wabwino:

function podcast_feed_rewrite( $wp_rewrite ) {
    $feed_rules = array(
        'feed/podcast/' => 'index.php?feed=podcast'
    );

    $wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;
}
add_filter( 'generate_rewrite_rules', 'podcast_feed_rewrite' );

Tsopano, chakudya chatsopanocho chimasindikizidwa ku https://yoursite.com/feed/podcast/

Onjezerani Ulalo Wodyetsa M'mutu Mwanu

Gawo lomaliza ndikuti mukufuna kuwonjezera ulalo mkati mwa ma tag amutu a tsamba lanu la WordPress kuti oyenda athe kupeza. Poterepa, tikufunanso kusankha kuti chakudya chizikhala choyambirira (pamwambapa pa bulogu ndi ndemanga), chifukwa chake tikuwonjezera patsogolo pa 1. Mudzafunanso kusinthanso mutuwo mu ulalo ndikuwonetsetsa kuti sunathere 'T mufanane ndi mutu wina wazakudya patsamba lino:

function add_podcast_link_head() {
    $podcast_link = site_url().'/feed/podcast/';
    ?>
    <link rel="alternate" type="application/rss+xml" title="My Podcast Name" href="<?php echo $podcast_link; ?>"/>
    <?php
}
add_action('wp_head', 'add_podcast_link_head', 1);

Chakudya Chanu Chatsopano cha WordPress

Chosangalatsa ndi njirayi ndikuti titha kukhala ndizosintha zonse pamutu watsambali… palibe mafayilo owonjezera a template kapena kusintha kwa mitu, ndi zina zambiri.

  • Permalinks - Mukangowonjezera nambala ku functions.php, muyenera kutsegula Zikhazikiko> Permalinks mu WordPress admin. Izi zidzatsitsimutsa malamulo anu a permalink kuti nambala yomwe tidalemba kuti tilembenso tsopano ikugwiritsidwa ntchito.
  • Security - Ngati tsamba lanu ndi SSL ndipo chakudya chanu cha podcast sichili, mudzakumana ndi zovuta zokhudzana ndi chitetezo. Ndingakulimbikitseni kwambiri kuwonetsetsa kuti tsamba lanu lonse komanso kusungidwa kwanu kwa podcast kumasungidwa bwino (pa https adilesi yopanda zolakwika).
  • Kugwirizana - Ndingakulimbikitseni kugwiritsa ntchito pulogalamu yapa podcast iyi kuti mugwirizane ndi Google, Apple, Spotify ndi ntchito ina iliyonse. Ubwino wake ndikuti tsopano mutha kusintha podcast yanu nthawi iliyonse yomwe mungafune ndipo simusowa kukonzanso chakudya chilichonse.
  • Zosintha - Ndingakulimbikitseni kukhala ndi ntchito ngati FeedPress komwe mungasinthire chakudya chanu ndikutsata komwe kuli pakati pazogwiritsa ntchito kuposa ntchito zambiri. FeedPress imakulolani kuti musinthe kusindikiza muma njira anu ochezera, chinthu chabwino kwambiri!

Mukufuna kuwona ngati ikugwira ntchito? Mutha kugwiritsa ntchito Wopereka Wowonjezera Wopereka kutsimikizira chakudya!

3 Comments

  1. 1

    Zinanditengera masiku 2 1/2 kuti ndifufuze ukondewo kuti ndipeze kena kake komwe ndimaganiza kuti WordPress podcaster iliyonse iyenera kuchita - kulandira chakudya cha RSS cha podcast yawo yachitatu-chipani patsamba lawo.

    Chifukwa chake zikomo! Zachidziwikire kuti nkhani yanu ikupempha funso: bwanji ichi sichowonjezera cha WordPress kale? Chomwe ndapeza kwambiri chinali WP RSS Aggregator, koma idalembanso XML ndikuphwanya RSS.

  2. 2

    Hi
    Ndakhazikitsa tsamba langa la WordPress kuti ndifalitsenso RSS yanga monga momwe yasonyezedwera, ndipo imagwira ntchito bwino, ndibwino kuti ndizilamulire ndekha ndikutenga gawo lalikulu podcasting.

    Ndili ndi funso ngakhale, chifukwa momwe podcasting yanga imatulutsira RSS XML - imadzipangira yokha ulalo wa intaneti pachigawo chilichonse chomwe chimaloza patsamba la HTML patsamba la freebie la podcasting host lomwe sindigwiritsa ntchito.

    China chake <rss2><channel><item><link></link> ngati chikhazikitso chikugwira ntchito. Kapena "rss2> njira> chinthu> ulalo"

    Apple Podcast imagwiritsa ntchito iyi XML kuwonetsa kulumikizana kwakukulu patsamba lake pachigawo chilichonse. Koma sindigwiritsa ntchito tsambalo la freebie kuchokera pagoda yanga ya podcasting (Podbeans). Ndikufuna kuti ndiloze tsamba lawebusayiti yanga - pomwe ma RSS feed omwe ndimayang'anira amakhala.

    Kodi mukuganiza kuti ndizotheka kusintha XML yomwe ikubwera kuti musinthe maulalo kuchokera podbeans.com kupita ku my-website.com?

    • 3

      Ndizotheka kuchita izi, koma muyeneranso kulemba nambala kuti mufunse mafayilo omwe ali nawo (monga MP3). Sindingachite izi chifukwa ma webusayiti ambiri sanakonzedwe pazotsitsa zazikulu zomwe zimafunikira ndi ma podcast.

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.