Yongeza ukondla iPodcast kwangaphandle kwiiFidi zeWebhusayithi yakho yeWordPress

ImiSebenzi yokuPhakwa kwePodcast yeWordPress

I-podcast eyaziwayo kwi-intanethi isebenzisa WordPress njengeqonga labo lokupapasha ulwazi malunga nepodcast yabo kunye nokupapasha itoni yolwazi malunga nomboniso ngamnye. Nangona kunjalo, bayayibamba ipodcast ngokwayo kwinjini yangaphandle yokubamba ipodcast. Yinto entle engenamthungo kubatyeleli besiza- kodwa iswele inqaku elinye elingabonakaliyo kubasebenzisi kodwa libonakala kubarhubuluzi abanjengoGoogle.

UGoogle ucacisa oku kwinkxaso yabo:

Ukongeza, ukuba udibanisa ukondla kwe-RSS kunye nephepha lasekhaya, abasebenzisi abafuna ipodcast yakho ngegama banokufumana inkcazo yepodcast yakho kunye necarousel yeziqendu zomboniso wakho kuKhangelo lukaGoogle. Ukuba awunikezeli iphepha lasekhaya elidibeneyo, okanye uGoogle akanakuthelekelela iphepha lakho lasekhaya, iziqendu zakho zisenokubonakala kwiziphumo zoPhendlo lukaGoogle, kodwa ziqokelelwe kuphela ngeziqendu ezivela kwezinye iipodcast ngesihloko esinye.

Uphando - Fumana ipodcast yakho kuGoogle

 Ngababini abadibeneyo, unokufumana ingxelo entle kuGoogle:

Iipodcast kwiGoogle SERP

Ukurhubuluza kwesiza kutyhila iposti yebhlog, kodwa hayi eyona ipodcast feed -Ibanjelwe ngaphandle. Inkampani ifuna ukugcina ukutya kwayo kwebhlog yangoku, ke sifuna ukongeza ukondla okwongezelelweyo kule ndawo. Nantsi indlela:

  1. Kufuneka sifake ikhowudi a ifidi entsha ngaphakathi komxholo wabo we-WordPress.
  2. Kufuneka si fumana kwaye upapashe ukutya kwangaphandle kwePodcast Kula feed intsha.
  3. Kufuneka si yongeza ikhonkco entloko Indawo yeWordPress ebonisa i-URL entsha yokondla.
  4. Ibhonasi: Kufuneka sicoce i-URL entsha ye-podcast yesondlo ukuze kungabikho mfuneko yokuba sixhomekeke kwimibuzo kwaye sinakho Phinda ubhale umendo kwi-URL entle.

Ungasongeza njani iSondlo esitsha kwi-WordPress

Ngaphakathi komxholo wakho okanye (ekucetyiswa kakhulu) kwimisebenzi yefayile yomxholo.php, uya kufuna ukongeza ukutya okutsha kwaye uxelele iWindowsPress ukuba uza kuyakha njani. Inqaku elinye koku… liya kupapasha ifidi entsha nge https://yoursite.com/?feed=podcast

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

Ukufumana kwakhona iPodcast yoKondla kwangaphandle kwaye uyiPapashe kwiNgxelo yeWordPress

Sixelele iWindowsPress ukuba siza kuyinika ipodcast isebenzisa Nikela_podcast_feed, Ke ngoku sifuna ukufumana kwakhona ukutya kwangaphandle (okuchongwe njenge https: //yourexternalpodcast.com/feed/ kulo msebenzi ungezantsi kwaye uphinde ube ngaphakathi kwi-WordPress ngexesha lesicelo. Inqaku elinye… iWindowsPress iya kugcina impendulo.

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;
} 

Phinda ubhale iSondlo sakho esitsha kwi-URL emnandi

Nantsi intwana yebhonasi. Khumbula ukuba isondlo sipapashwa njani ngombuzo? Singongeza umthetho wokubhala kwakhona kwi-works.php ukuyitshintsha nge-URL entle:

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' );

Ngoku, ukutya okutsha kupapashwa ngo https://yoursite.com/feed/podcast/

Yongeza ikhonkco kwiNgxelo kwiNtloko yakho

Inyathelo lokugqibela kukuba ufuna ukongeza ikhonkco ngaphakathi kweethegi zentloko kwindawo yakho yeWordPress ukuze abakhasayo bayifumane. Kule meko, sifuna nokutyumba ukondla njengeyokuqala edwelisiweyo (ngaphezulu kwebhlog kunye nokunika izimvo ukutya), ke ngoko songeza kuqala ku-1. Uya kufuna kwakhona ukuhlaziya isihloko kwikhonkco kwaye uqiniseke ukuba ayisi 't Tshatisa enye itayitile yokondla kule ndawo:

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);

Isondlo sakho esitsha seWordPress Podcast

Into emnandi ngale ndlela kukuba sikwazile ukugcina lonke utshintsho ngaphakathi komxholo wesiza… akukho fayile zetemplate ezongezelelweyo okanye ukuhlelwa kweentloko, njl njl.

  • Ii-Permalinks -Ukongeza ikhowudi kwi Imisebenzi.php, kuyakufuneka uvule Useto> Iipermalinks kumlawuli weWordPress. Oko kuyakuhlaziya imigaqo yakho ye-permalink ukuze ikhowudi esiyongeze ekubhaleni kwakhona yenziwe ngoku.
  • ukhuseleko -Ukuba indawo yakho iyi-SSL kwaye ipodcast yakho ayisiyo, uza kuba nemicimbi yokhuseleko oluxubeneyo. Ndingacebisa kakhulu ukuba kuqinisekiswe ukuba indawo yakho kunye nokusingathwa kwepodcast kubanjwe ngokukhuselekileyo (kwifayile ye- https Idilesi engenazimpazamo).
  • Umanyano -Ndicebisa kakhulu ukuba ndisebenzise le fomathi yedomain ekhethekileyo ye-podcast ukudibanisa kuGoogle, Apple, Spotify kunye nayiphi na enye inkonzo. Uncedo apha kukuba ngoku unokutshintsha umphathi wakho we-podcast nanini na ungathanda kwaye akuyi kufuneka uhlaziye umthombo wenkonzo nganye.
  • Uhlalutyo -Ndicebisa ngokobuqu ukuba nenkonzo enje Isongezelelo apho ungenza khona ngokwezifiso ukutya kwakho kwaye ufumane ukulandela umkhondo ophakathi ekusebenziseni kwayo ngaphaya kweenkonzo ezininzi ezibonelelweyo. I-FeedPress ikwavumela ukuba wenze ushicilelo oluzenzekelayo kwiitshaneli zakho zentlalo, into entle kakhulu!

Ngaba ufuna ukubona ukuba iyasebenza? Ungasebenzisa i Isiqinisi sokuFumana isiXhobo ukuqinisekisa ukutya!

3 Comments

  1. 1

    Kwandithatha iintsuku ezi-2/1 ukukhangela umnatha ukufumana into endicinga ukuba yonke i-WordPress podcaster kufuneka ifune ukuyenza-ukusingathwa kwe-RSS feed ye-2-party-host-podcast kwindawo yabo yamagama.

    Ndiyabulela ke! Ewe inqaku lakho libongoza umbuzo: kutheni le ingeyiyo iplagi ye-WordPress? Eyona ikufutshane endiyifumeneyo yayiyi-WP RSS Aggregator, kodwa yayibhala kwakhona iXML kwaye yaphula i-RSS.

  2. 2

    Hi
    Ndisete indawo yam yeWordPress ukuze ndiphinde ndipapashe i-RSS yam ngokuchanekileyo njengoko ibonisiwe, kwaye isebenza kakuhle, kulungile ukuyilawula ngokwam kwaye ndithathe inyathelo elikhulu kwinkqubo yepodcasting.

    Ndinombuzo nangona, ngenxa yendlela umphathi wam we-podcasting avelisa ngayo i-RSS XML-ivelisa ngokuzenzekelayo ikhonkco lewebhu kwisiqendu ngasinye esikhomba kwiphepha le-HTML kwiwebhusayithi yomgcini wepodcasting ye-freebie engayisebenzisiyo.

    Into efana <rss2><channel><item><link></link> ukuba uphawu lokumakisha lusebenza. Okanye "rss2> ijelo> into> ikhonkco"

    I-Apple Podcast isebenzisa le datha yeXML ukubonisa ikhonkco elikhulu kwiphepha layo kwisiqendu ngasinye. Kodwa andiyisebenzisi iwebhusayithi ye-freebie evela kumamkeli wam wepodcasting (iiPodbeans). Ndiyayifuna ukuba yalathe kwiwebhusayithi yam- apho i-RSS feed endiyilawulayo ibanjwe.

    Ngaba ucinga ukuba kunokwenzeka ukuba usebenzise i-XML engenayo ukutshintsha amakhonkco kuyo ukusuka kwipodbeans.com uye kwi-my-website.com?

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.