Hoʻohui i kahi hānai Podcast kūwaho i kāu Mana Pūnaewele WordPress

Nā hana hānai Podcast WordPress

Hoʻohana ʻia kahi podcast kaulana WordPress e like me kā lākou papahana paʻi no ka ʻike e pili ana i kā lākou podcast a me ka paʻi ʻana i kahi o ka ʻikepili e pili ana i kēlā me kēia hōʻike. Eia nō naʻe, hoʻokipa maoli lākou i ka podcast iā lākou iho ma kahi ʻenekini podcast kūwaho. Nani ʻole ia i nā malihini kipa o ka pūnaewele - akā nele i hoʻokahi hiʻohiʻona i ʻike ʻole ʻia e nā mea hoʻohana akā ʻike ʻia e nā mea kolo e like me Google.

Hōʻike ʻo Google i kēia i kā lākou kākoʻo:

Eia hou, inā hoʻohui ʻoe i kāu hānai RSS me kahi homepage, hiki i nā mea hoʻohana e ʻimi nei i kāu podcast ma ka inoa ke loaʻa kahi wehewehe o kāu podcast a me kahi carousel o nā ʻāpana no kāu hōʻike ma ka Huli Google. Inā ʻaʻole ʻoe e hoʻolako i kahi homepage i hoʻopili ʻia, a i ʻole hiki iā Google ke koho i kāu homepage, hiki ke ʻike ʻia kāu mau ʻāpana i nā hualoaʻa Google Search, akā hoʻopili wale ʻia me nā ʻāpana mai nā podcasts ʻē aʻe ma ke kumuhana like.

No direct translation - E kiʻi i kāu podcast ma Google

 Me nā mea e pili ana, hiki iā ʻoe ke kiʻi i kahi uhi maikaʻi ma Google:

Nā Podcast ma Google SERP

Hōʻike ka kolo ʻana o ka pūnaewele i kahi hānai pou moʻomanaʻo, akā ʻaʻole ka maoli hānai podcast - i mālama ʻia i waho. Makemake ka ʻoihana e mālama i kāna hānai blog i kēia manawa, no laila makemake mākou e hoʻohui i kahi hānai hou i ka pūnaewele. Eia pehea:

  1. Pono mākou e kuhi a hānai hou ma loko o kā lākou kumuhana WordPress.
  2. Pono mākou loaʻa a paʻi i ka hānai podcast kūwaho i kēlā hānai hou.
  3. Pono mākou hoʻohui i kahi loulou i ke poʻo o ka pūnaewele WordPress e hōʻike nei i ka URL hānai hou.
  4. Bonus: Pono mākou e hoʻomaʻemaʻe i ka URL hānai podcast hou no laila ʻaʻole pono mākou e hilinaʻi i nā querystrings a hiki kākau hou i ke ala i kahi URL maikaʻi.

Pehea e hoʻohui ai i kahi hānai hou i WordPress

Ma loko o kāu kumuhana a i ʻole (paipai loa ʻia) i nā hana a ke keiki kumuhana .php, makemake ʻoe e hoʻohui i ka hānai hou a haʻi iā WordPress pehea ʻoe e kūkulu ai. Hoʻokahi memo ma kēia… e paʻi ʻia ka hānai hou ma https://yoursite.com/?feed=podcast

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

E kiʻi i kahi hānai Podcast kūwaho a paʻi ia i kahi hānai WordPress

Ua haʻi mākou iā WordPress e hāʻawi mākou i ka podcast e hoʻohana nei liuliuli, no laila makemake mākou e kiʻi i ka hānai kūwaho (i koho ʻia e like me https: //yourexternalpodcast.com/feed/ i ka hana ma lalo ae hana hou i loko o WordPress i ka manawa o ke noi. Hoʻokahi memo ... E hūnā ʻo WordPress i ka pane.

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

Kakau hou i kāu hānai hou i kahi URL maikaʻi

Eia kahi bonus iki. Hoʻomanaʻo i ka paʻi ʻia ʻana o ka hānai me kahi querystring? Hiki iā mākou ke hoʻohui i kahi rula kākau hou i functions.php e hoʻololi i kēlā me kahi URL maikaʻi:

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

I kēia manawa, paʻi ʻia ka hānai hou ma https://yoursite.com/feed/podcast/

E hoʻohui i kahi loulou i ka hānai i kou poʻo

ʻO ka hana hope loa āu e makemake ai e hoʻohui i kahi loulou i loko o nā poʻo poʻo o kāu pūnaewele WordPress i hiki i nā mea kolo ke loaʻa iā ia. I kēia hihia, makemake mākou e koho i ka hānai e like me ka mea i helu ʻia (ma luna o ka blog a me nā hānai ʻōlelo), no laila hoʻohui mākou i kahi mea nui o 1. Makemake pū ʻoe e hoʻohou i ke poʻo i ka loulou a maopopo lea ʻaʻole ia 'aʻole kūlike i ka inoa poʻo o kahi hānai ma ka pūnaewele:

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

ʻO kāu hānai Podcast WordPress Hou

ʻO ka mea maikaʻi e pili ana i kēia hana ua hiki iā mākou ke hoʻopaʻa iā mākou iho i nā loli āpau ma loko o ke kumuhana pūnaewele ... ʻaʻohe faila template hou a hoʻoponopono ʻana paha i nā poʻo poʻo, a me nā mea kikoʻī ʻelua ʻelua:

  • ʻO Permalinks - Ke hoʻohui ʻoe i ke code i functions.php, pono ʻoe e wehe i nā Pūʻali> Permalinks ma ka luna WordPress. E hōʻoluʻolu i kāu mau rula permalink i hoʻokō ʻia ai ke code a mākou i hoʻohui ai no ka hana hou.
  • maluhia - Inā SSL kāu pūnaewele a ʻaʻole kāu hānai podcast, e holo ana ʻoe i loko o nā pilikia me ka palekana huikau. Paipai nui wau e hōʻoia i ka mālama pono ʻia ʻana o kāu pūnaewele a me kāu hoʻolaha podcast (at an https kamaʻilio me nā hemahema ʻole).
  • ʻNdlelo Hoʻoikaika - E paipai nui wau i ka hoʻohana ʻana i kēia feed podcast kikoʻī kikoʻī e kuhi aku ai iā Google, Apple, Spotify a me nā lawelawe ʻē aʻe. ʻO ka maikaʻi ma aneʻi hiki iā ʻoe ke hoʻololi i kēia manawa i kāu mea hoʻokipa podcast i kēlā me kēia manawa āu e makemake ai a ʻaʻole pono e hoʻohou i ka hānai kumu o kēlā me kēia lawelawe.
  • Analytics - E paipai wau iā ʻoe iho i kahi lawelawe e like me ʻO FeedPress kahi e hiki ai iā ʻoe ke hoʻopilikino i kāu hānai a loaʻa i kahi huli kikowaena ʻana ma luna o ka hoʻohana ma waho o ka mea a nā lawelawe i hāʻawi ai. ʻAe ʻo FeedPress iā ʻoe e hoʻohana automate i ka paʻi ʻana i kāu kahawai kaiaulu, kahi hiʻohiʻona maikaʻi loa!

Makemake ʻoe e ʻike inā e holo nei? Hiki iā ʻoe ke hoʻohana i ka Hoolei Feed Validator e hōʻoia i ka hānai!

3 Comments

  1. 1

    Lawe iaʻu 2 1/2 mau lā o ka ʻimi ʻana i ka ʻupena e ʻike i kahi mea aʻu i manaʻo ai e makemake ana kēlā me kēia podcaster WordPress - e hoʻokipa i ka feed RSS no kā lākou podcast hoʻokipa ʻaoʻao ʻekolu i kā lākou pūnaewele wordpress.

    No laila mahalo ʻOiaʻiʻo e noi ana kāu ʻatikala i ka nīnau: no ke aha ʻaʻole kēia he plugin WordPress? ʻO ka mea kokoke loa i loaʻa iaʻu ʻo WP RSS Aggregator, akā ua hoʻopau hou ia i ka XML a haki ka RSS.

  2. 2

    Hi
    Ua hoʻonohonoho wau i kaʻu pūnaewele WordPress e hoʻopuka hou i kaʻu RSS e like me ka mea i hōʻike ʻia, a maikaʻi ia, maikaʻi ke kaohi iā ia iho a lawe i kahi ʻanuʻu nui mai ka hana podcasting.

    He nīnau naʻe kaʻu, ma muli o ka hana a kaʻu host podcasting i ka RSS XML - hana ia i kahi loulou pūnaewele no kēlā me kēia ʻāpana e kuhikuhi ana i ka ʻaoʻao HTML ma ka pūnaewele freebie hostcast podcasting aʻu e hoʻohana ʻole ai.

    Me kekahi mea like <rss2><channel><item><link></link> inā holo ka māka. A i ʻole “rss2> kahawai> ʻikamu> loulou”

    Hoʻohana ʻo Apple Podcast i kēia ʻikepili XML e hōʻike i kahi loulou nui ma kāna ʻaoʻao no kēlā me kēia ʻāpana. Akā ʻaʻole wau e hoʻohana i kēlā pūnaewele freebie mai kaʻu host podcasting (Podbeans). Pono wau e kuhikuhi i kaʻu pūnaewele ponoʻī - kahi i mālama ʻia ai ka hānai RSS aʻu e mālama ai.

    Manaʻo ʻoe he hiki ke hoʻohana i ka XML e hiki mai ana e hoʻololi i nā loulou i loko o ia mai podbeans.com i kaʻu-website.com?

    • 3

      Hiki ke hana i kēia, akā pono ʻoe e kākau i ke code e noi ai i nā faile i mālama ʻia (e like me ka MP3). ʻAʻole wau e hana pono i kēia no ka mea ʻaʻole hoʻomākaukau ʻia ka hapa nui o nā pūnaewele no nā hoʻoiho faila nui e pono ai me nā podcasts.

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.