Kenya Phepelo ea Podcast ea kantle ho Phepelo ea Sebaka sa hau sa WordPress

Mesebetsi ea Podcast ea WordPress

Podcast e tsebahalang inthaneteng e sebelisa Wordpress joalo ka sethala sa bona sa khatiso bakeng sa tlhaiso-leseling e mabapi le podcast ea bona hape le ho phatlalatsa leseli la leseli mabapi le lenaneo ka leng. Leha ho le joalo, ba amohela podcast ka boeona ho enjene ea kantle ea podcast ea ho amohela. E ntle haholo ho baeti ba sebaka sena - empa ha e na tšobotsi e le 'ngoe e sa bonahaleng ho basebelisi empa e bonoa ke ba hahlang joaloka Google.

Google e totobatsa sena ho tšehetso ea bona:

Ntle le moo, haeba u amahanya fepa ea hau ea RSS le leqephe la lehae, basebelisi ba batlang podcast ea hau ka mabitso ba ka fumana tlhaloso ea podcast ea hau hammoho le li-epousse tsa mananeo bakeng sa lenaneo la hau ho Patlo ea Google. Haeba u sa fane ka leqephe la lehae le hokahaneng, kapa Google e sa nahane hore na leqephe la hau ke lefe, mananeo a hau a ntse a ka hlaha liphethong tsa Patlo ea Google, empa a hlophisitsoe feela ka mananeo a tsoang ho li-podcast tse ling ka taba e tšoanang.

Google - Fumana podcast ea hau ho Google

 Ka tse peli tse amanang, o ka fumana litaba tse monate ho Google:

Li-podcast ho Google SERP

Ho khasa ha sebaka sena sa marang-rang ho senola phepo ea poso ea blog, empa eseng ea nnete fepa ka podcast - e tšoaretsoeng kantle. Khamphani e batla ho boloka phepelo ea eona ea hajoale ea blog, ka hona re batla ho eketsa phepelo e ngoe sebakeng sa marang-rang. Mona ke kamoo:

  1. Re hloka ho khouta a phepo e ncha ka har'a sehlooho sa bona sa WordPress.
  2. Re hloka ho fumana le ho phatlalatsa phepo ea kantle ea podcast phepong eo e ncha.
  3. Re hloka ho eketsa sehokela hloohong ea sebaka sa WordPress se bonts'ang URL e ncha ea fepa.
  4. Bonus: Re hloka ho hloekisa URL ea podcast e ncha kahoo ha rea ​​tlameha ho itšetleha ka lipotso le ho khona ngola tsela bocha ka URL e ntle.

Mokhoa oa ho eketsa phepelo e ncha ho WordPress

Ka har'a sehlooho sa hau kapa (e khothalelitsoeng haholo) file ea theme ea bana.php, u tla batla ho eketsa phepelo e ncha ebe u joetsa WordPress hore na u tla e haha ​​joang. Noutu e le 'ngoe ho sena… e tla phatlalatsa phepelo e ncha ho https://yoursite.com/?feed=podcast

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

Khutlisa Phepelo ea kantle ea Podcast ebe ue phatlalatsa ho Phepelo ea WordPress

Re boleletse WordPress hore re tla fana ka podcast re sebelisa rekisetsa_podcast_feed, ka hona joale re batla ho lata phepo ea kantle (e khethiloeng e le hTtps: //yourexternalpodcast.com/feed/ ts'ebetsong e ka tlase mme o e kopitsa ka har'a WordPress nakong ea kopo. Noto e le 'ngoe… WordPress e tla boloka karabo.

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

Ngola Phepelo ea hau e Ncha ho URL e Ntle

Bonase ke ena e nyane. Hopola hore na fepa e phatlalatsoa joang ka lipotso? Re ka eketsa molao o ngolisoang bocha ho works.php ho e fapanyetsana ka URL e ntle:

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

Hona joale, phepelo e ncha e phatlalalitsoe ho https://yoursite.com/feed/podcast/

Kenya Khokahano ho Phepelo Hloohong ea Hau

Mohato oa hoqetela ke hore o batla ho eketsa sehokela ka har'a li-tag tsa hlooho tsa sebaka sa hau sa WordPress e le hore ba khasang ba ka se fumana. Maemong ana, re bile re batla ho khetha phepelo hore e be ea pele e thathamisitsoeng (kaholimo ho blog le litlatsetso tsa litlatsetso), ka hona re eketsa ka pele ho 1. O tla boela o batle ho nchafatsa sehlooho sehokelong mme o netefatse hore ha se 'T match sehlooho se seng sa fepa ka sebaka:

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

Phepelo ea hau e ncha ea Podcast ea WordPress

Ntho e ntle ka mokhoa ona ke hore re khonne ho iketsetsa liphetoho tsohle kahare ho sehlooho sa sebaka… ha ho na lifaele tsa tlatsetso tsa template kapa ho hlophisoa ha lihlooho, joalo-joalo lintlha tse 'maloa tsa bohlokoa:

  • Permalinks Hang ha o kenya khoutu ho fonts.php, o tla hloka ho bula Litlhophiso> Permalinks ho WordPress admin. Seo se tla khatholla melao ea hau ea tumello e le hore khoutu eo re e kenyellelitseng ho ngola hape e se e sebelisitsoe.
  • Security - Haeba sebaka sa hau sa marang-rang ke SSL 'me phepo ea hau ea podcast e se joalo, u tla tobana le mathata ka ts'ireletso e tsoakaneng. Ke khothaletsa haholo ho netefatsa hore sebaka sa hau sa marang-rang le pokello ea hau ea podcast e amoheloa ka mokhoa o sireletsehileng (ho https aterese ntle le liphoso).
  • Bonngoe - Ke khothaletsa haholo ho sebelisa sesebelisoa sena se ikhethileng sa podcast ho ikopanya le Google, Apple, Spotify le ts'ebeletso efe kapa efe. Monyetla mona ke hore joale o ka fetola moamoheli oa hau oa podcast neng kapa neng ha u ka rata 'me ha ho hlokahale hore u ntlafatse mohloli o mong le o mong oa ts'ebeletso.
  • Analytics - Ke ne ke tla nkhothaletsa ho ba le ts'ebeletso e joalo Phepelo moo o ka fetolang fepa ea hau ka mokhoa o ikhethileng mme o fumana lintlha tse latelang tse mabapi le ts'ebeliso ea eona ho feta lits'ebeletso tse ngata tse fanang ka tsona. FeedPress e boetse e o lumella hore o iketsetse khatiso litsing tsa hau tsa sechaba, tšobotsi e ntle haholo!

U batla ho bona hore na e ea sebetsa? U ka sebelisa file ea Sehlahisoa sa Cast Feed ho netefatsa phepelo!

4 Comments

  1. 1

    Ho nkukile matsatsi a 2 1/2 ha ke ntse ke batla marang-rang ho fumana ntho eo ke neng ke nahana hore podcaster e 'ngoe le e 'ngoe ea WordPress e tlameha ho batla ho e etsa - amohela phepelo ea RSS bakeng sa podcast ea bona ea mokha oa boraro sebakeng sa bona sa WordPress.

    Kahoo kea leboha! Ehlile sengoloa sa hau se botsa potso: hobaneng ha e se plugin ea WordPress? E haufi ka ho fetisisa eo ke e fumaneng e ne e le WP RSS Aggregator, empa e ile ea ngola hape XML ka ho feletseng 'me ea roba RSS.

  2. 2

    Hona joale ke hlophisa ntho e 'ngoe le e 'ngoe ka phepelo e ncha e tsoang ho moamoheli oa ka (ka lebaka la likotlo tsa hau tsa khoutu) Ke sa tsoa fumana hore Cast Feed Validator e hloile RSS ea ka mme e oela holim'a lefu - https://podba.se/validate/?url=https://carbonwatchdog.org/feed/podcast/

    Empa ea mantlha ho Podbean e netefatsa hantle. Ka mokhoa o nyahamisang, molaetsa oa phoso oa validator ha o bue ho hongata ntle le "Argh! Ke sa tsoa shoa!”

    RSS e netefatsa hantle ho https://podba.se/validate/?url=https://carbonwatchdog.org/feed/podcast/

  3. 3

    Hi
    Ke thehile sebaka sa ka sa WordPress ho hatisa hape RSS ea ka joalo ka ha ho bonts'itsoe, 'me e sebetsa hantle, ho monate ho e laola le ho nka mohato o moholo ho tsoa ts'ebetsong ea podcasting.

    Leha ho le joalo, ke na le potso, ka lebaka la tsela eo moamoheli oa ka oa podcasting a hlahisang RSS XML - e iketsetsa sehokelo sa webo bakeng sa karolo ka 'ngoe e supang leqephe la HTML ho webosaete ea mahala ea podcasting eo ke sa e sebeliseng.

    Ntho e kang <rss2><channel><item><link></link> haeba letšoao le sebetsa. Kapa “rss2>channel>item>link”

    Apple Podcast e sebelisa data ena ea XML ho hlahisa sehokelo se seholo leqepheng la eona bakeng sa karolo ka 'ngoe. Empa ha ke sebelise sebaka seo sa marang-rang sa mahala ho tsoa ho moamoheli oa ka oa podcasting (Podbeans). Ke e hloka ho supa webosaete ea ka - moo phepelo ea RSS eo ke e laolang e tšoaroang teng.

    Na u nahana hore hoa khonahala ho thetsa XML e kenang ho fetola likhokahano tse ho eona ho tloha podbeans.com ho ea ho my-website.com?

    • 4

      Hoa khoneha ho etsa sena, empa hape u tla tlameha ho ngola khoutu ho kopa lifaele tsa sebele tse amohetsoeng (joaloka MP3). Ka 'nete ke ne nke ke ka etsa sena kaha li-web host tse ngata ha li e-s'o lokisetsoe ho khoasolla lifaele tse kholo tse hlokahalang ka li-podcasts.

U nahana eng?

Sebaka sena se sebelisa Akismet ho fokotsa spam. Ithute kamoo litlhaloso tsa hau li hlahang kateng.