Wedzera Chokunze Podcast Kudya kune Yako WordPress Saiti Saiti

WordPress Podcast Feed Mabasa

Iyo inozivikanwa podcast pamhepo inoshandisa WordPress seye yavo yekushambadzira chikuva cheruzivo nezve yavo podcast pamwe nekudhinda toni yeruzivo nezve yega show. Nekudaro, ivo vanogamuchira iyo podcast pachayo pane yekunze podcast yekutambira injini. Iyo yakanaka isina musono kune vashanyi vesaiti - asi haina chimwe chinhu chisingaonekwe kune vashandisi asi chinoonekwa kune vanokambaira seGoogle.

Google inotsanangura izvi mukutsigira kwavo:

Uye zvakare, kana iwe ukabatanidza yako RSS feed nepeji peji, vashandisi vanotsvaga yako podcast nemazita vanogona kuwana tsananguro yepodcast yako pamwe nechitunha chezvikamu zvekuratidzira kwako paGoogle Kutsvaga. Kana iwe ukasapa peji rakabatana, kana Google isingakwanise kufungidzira peji rako rekutanga, zvikamu zvako zvinogona kuoneka mumigumisiro yeGoogle Kutsvaga, asi zvinongobatanidzwa nezvikamu kubva kune mamwe podcasts pane iwo musoro iwoyo.

Google - Tora podcast yako paGoogle

 Nevaviri vakabatana, unogona kuwana kufukidzwa kwakanaka muGoogle:

Podcasts paGoogle SERP

Kukamba kwesaiti kunoratidzira blog post feed, asi kwete iyo chaiyo Podcast feed - inoitirwa kunze. Iyo kambani inoda kuchengeta yayo yazvino blog feed, saka isu tinoda kuwedzera imwe yekuwedzera feed kune ino saiti. Heano maitiro:

  1. Tinofanira kunyora a chikafu chitsva mukati memusoro wavo weWordPress.
  2. Tinofanira kudaro dzosa uye ubudise yekunze podcast feed mune icho chitsva chikafu.
  3. Tinofanira kudaro wedzera chinongedzo mumusoro yeiyo WordPress saiti inoratidza iyo nyowani feed URL.
  4. Bhonasi: Isu tinofanirwa kuchenesa iyo itsva podcast feed URL saka hatifanirwe kuvimba nemibvunzo uye tinokwanisa nyorazve nzira mune yakanaka URL.

Nzira yekuwedzera sei Nyowani Nyowani kune WordPress

Mukati medingindira rako kana (yakakurudzirwa kwazvo) theme yemwana's function.php faira, iwe uchazoda kuwedzera iyo nyowani feed uye kuudza WordPress kuti uchaivaka sei. Imwe katsamba pane izvi… ichashambadzira iyo nyowani feed pa https://yoursite.com/?feed=podcast

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

Dzosera Kunze kwePodcast Kudya uye Kuzvishambadza Mune Iyo WordPress Kupa

Isu takaudza WordPress isu taizopa iyo podcast tichishandisa render_podcast_feed, saka isu tave kuda kutora chikafu chekunze (chakatemerwa https: //yourexternalpodcast.com/feed/ mune iri pazasi basa uye riteedzere mukati meWordPress panguva yekukumbira. Kamwe katsamba… WordPress ichavhara mhinduro.

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

Nyorazve Chako Chitsva Chidimbu kune Nice URL

Hechino zvishoma bhonasi. Rangarira mashandisiro anoita chikafu ne querystring? Tinogona kuwedzera rewrite mutemo kune works.php kuchinjanisa izvo kunze neNice URL:

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

Zvino, chikafu chitsva chakaburitswa pa https://yoursite.com/feed/podcast/

Wedzera chinongedzo kune iyo Kudyisa Mumusoro Wako

Nhanho yekupedzisira ndeyekuti iwe unoda kuwedzera chinongedzo mukati memusoro mateki eako WordPress saiti kuitira kuti vanokambaira vagone kuiwana. Mune ino kesi, isu tinotoda kudoma chikafu senge chekutanga chakanyorwa (pamusoro peblog uye makomendi feeds), saka tinowedzera kukosha kwa1. Uchada zvakare kugadzirisa zita iri mu link uye uve nechokwadi chekuti haina 't match imwe zita rechikafu panzvimbo iyi:

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

Yako Nyowani WordPress Podcast Kudya

Chinhu cheNice nezve iyi nzira ndechekuti isu takakwanisa kuzvimiririra-neshanduko dzese mukati meiyi saiti theme ... hapana akawedzera mafaera etemplate kana kugadzirisa kwemisoro, nezvimwe zvakati wandei zvakakosha:

  • permalinks - Paunongowedzera kodhi ku functions.php, iwe unofanirwa kuvhura Zvirongwa> Permalinks muWordPress admin. Izvi zvinozorodza yako permalink mitemo kuitira kuti kodhi isu yatakawedzera yekunyorazve iko zvino yaitwa.
  • chibatiso - Kana yako saiti iri SSL uye yako podcast feed isiri, iwe unozomhanyisa muzvinhu zvine musanganiswa chengetedzo. Ini ndaikurudzira kwazvo kuona zvese saiti yako uye yako podcast yekutambira yakachengetedzwa zvakachengetedzwa (pa https address isina zvikanganiso).
  • Kubatana - Ini ndaikurudzira zvikuru kushandisa ino doma-yakatarwa podcast feed kuti ubatanidze kuenda kuGoogle, Apple, Spotify uye chero rimwe basa. Mukana apa ndewekuti iwe unogona ikozvino shandura yako podcast inomiririra pese paunoda uye haufanire kugadzirisa yega yega sevhisi sosi yekudya.
  • Analytics - Ini pachangu ndaikurudzira kuve nebasa rakafanana Feedpress kwaunogona kugadzirisa feed yako uye uwane imwe yepakati yekutevera pane iko kushandiswa kupfuura izvo zvinopihwa nemasevhisi mazhinji FeedPress zvakare inobvumidza iwe kushandura kushambadzira kune ako masocial chiteshi, inotonhorera chimiro!

Unoda kuona kana iri kushanda? Unogona kushandisa iyo Kanda Yekumhanyisa Validator kuongorora chikafu!

3 Comments

  1. 1

    Zvakanditorera mazuva maviri nemaviri ekutsvaga mambure kuti ndiwane chimwe chinhu chandaifunga kuti chero WordPress podcaster yavanofanira kuda kuita - kuitisa iyo RSS feed ye yavo yechitatu-bato-inomirirwa podcast pane yavo saiti yeshoko.

    Saka ndatenda! Ehe chinyorwa chako chinokumbira mubvunzo: nei ichi chisiri WordPress plugin yatove? Yepedyo yandakawana yaive WP RSS Aggregator, asi yakanyorazve iyo XML ndokutyora iyo RSS.

  2. 2

    Hi
    Ini ndaisa yangu saiti yeWordPress kuti ndibudise zvekare RSS yangu chaizvo sezvakaratidzwa, uye inoshanda nemazvo, zvakanaka kuzvidzora pachangu uye kutora nhanho hombe kubva muitiro wepodcasting.

    Ndine mubvunzo zvakadaro, nekuda kwenzira yangu podcasting inomiririra inogadzira iyo RSS XML - inogadzira auto yewebhu yekubatanidza kune yega yega episode iyo inonongedza kune iyo HTML peji pane iyo podcasting inomiririra freebie webhusaiti yandisingashandise.

    Chinhu chakadai <rss2><channel><item><link></link> kana mucherechedzo uchishanda. Kana "rss2> chiteshi> chinhu> chinongedzo"

    Apple Podcast inoshandisa iyi XML dhata kuratidza hukuru hukuru pane yayo peji kune yega yega episode. Asi ini handishandise iyo yemahara webhusaiti kubva kune yangu podcasting inomiririra (Podbeans). Ndinochida kunongedzera kune yangu webhusaiti - uko iyo RSS feed yandinodzora inogarwa.

    Iwe unofunga kuti zvinokwanisika kushandisa iyo iri kuuya XML kushandura zvinongedzo zvirimo kubva podbeans.com kuenda ku my-website.com?

    • 3

      Izvo zvinokwanisika kuita izvi, asi iwe zvakare unofanirwa kunyora kodhi kukumbira iwo chaiwo akachengetwa mafaera (senge MP3). Ini zvechokwadi ndaisazoita izvi sezvo mazhinji mawebhu webhu asina kugadzirirwa iwo makuru faira kurodha pasi kunodiwa neepodcast.

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.