Faʻaopopo Se Fafo Podcast Fafaga i Lau WordPress 'Upega Tafaʻilagi

WordPress Podcast Fafagaina Galuega

O se lauiloa podcast lugalaina faʻaaogaina WordPress pei o la latou lolomiga tulaga mo le faʻamatalaga e uiga ia latou podcast faʻapea foi ma le lolomiina o tone o faʻamatalaga e uiga i ata taʻitasi. Peitai, latou moni talimalo le podcast lava ia i luga o fafo podcast talimalo afi. E matua leai se aoga i tagata asiasi ile 'upega tafaʻilagi - ae leai se mea e tasi e le vaʻaia e tagata faʻaaoga ae vaʻaia e totolo pei o Google.

Google faʻamaninoina lenei i la latou lagolago:

I se faʻaopopoga, afai e te faʻafesoʻotaʻia lau RSS feed ma se homepage, o tagata e suʻeina lau podcast i o latou igoa e mafai ona maua se faʻamatalaga o lau podcast faʻapea foi ma le carousel o vaega mo lau faʻaaliga i luga o le Google Search. Afai e te le tuʻuina atu se fesoʻotaʻiga homepage, pe Google le mafai ona mateia lou itulau autu, o lau vaega e mafai lava ona aliali mai i le Google Search iʻuga, ae na o faʻavasega ma vaega mai isi podcast i luga o le autu lava e tasi.

Google - Faʻalelei lau podcast ile Google

 Faʻatasi ma le lua fesoʻotaʻi, oe mafai ona maua ni lelei inisiua i Google:

Podcasts luga Google SERP

O le tolotolo o le 'upega tafaʻilagi faʻaalia ai se blog post feed, ae le o le mea moni fafaga podcast - lea e talimalo i fafo. E manaʻo le kamupani e tuʻu pea ana blog blog i le taimi nei, o lea matou te mananaʻo e faʻaopopo se faʻaopopo faʻaopopo i luga ole laiga. Lenei faʻapefea:

  1. E tatau ona tatou faʻailoga a fafaga fou totonu o la latou autu WordPress.
  2. Tatou te manaʻomia toe aumai ma lomia fafaga fafo podcast fafaga i lena fafaga fou.
  3. Tatou te manaʻomia faʻaopopo se fesoʻotaʻiga i le ulu o le 'upega tafaʻilagi WordPress o loʻo faʻaalia ai le fou fafaga URL.
  4. Ponesi: E manaʻomia ona tatou faʻamama le fafagaina podcast fou URL ina ia tatou le tau faʻamoemoeina i querystrings ma mafaia toe tusi le ala i se manaia URL.

Faʻafefea ona Faʻaopopo se Fou Fafaga i le WordPress

I totonu o lau autu poʻo le (maualuga fautuaina) tama autu autu a gaioiga.php faila, oe manaʻo e faʻaopopo le fou fafaga ma taʻu i le WordPress auala o le ae fausia ai. Tasi nota i luga o lenei… o le a lolomiina le fou fafaga i https://yoursite.com/?feed=podcast

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

Toe aumai se Fafo Podcast Fafaga ma Faʻasalalau I Se WordPress Fafaga

Na matou taʻuina i le WordPress matou te tuuina atu le podcast i le faaaogaina render_podcast_feed, o lea ua matou mananaʻo nei e toe aumai le fafaga i fafo (filifilia o le https: //yourexternalpodcast.com/feed/ i lalo ifo galuega ma faʻaluaina i totonu o WordPress i le taimi o le talosaga. Tasi nota… O le a faʻamama e le WordPress le tali.

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

Toe tusi lau New Fafaga i se manaia URL

Lenei o sina sili o le ponesi. Manatua pe faʻafefea ona lolomi le fafaga ma le querystring? E mafai ona matou faʻaopopo se tulafono toe tusi i functions.php e faʻafesuiaʻi lena mea ma se URL manaia:

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

Lenei, ua faʻasalalau le fafaga fou i le https://yoursite.com/feed/podcast/

Faʻaopopo se Link i le Fafaga I Lou Ulu

O le laʻasaga mulimuli o lou manaʻo lea e faʻaopopo se soʻotaga i totonu o uluaʻi pine o lau 'upega tafaʻilagi WordPress ina ia mafai ona maua e tagata tolotolo. I lenei tulaga, matou te mananaʻo foʻi e vaʻaia le fafaga pei o le muamua lisi (i luga aʻe o le blog ma manatu faʻaalia), o lea matou te faʻaopopoina le faʻamuamua o le 1. E te manaʻo foʻi e faʻafou le ulutala i le fesoʻotaʻiga ma ia mautinoa e leʻo 'e faʻafetaui le isi ulutala igoa luga o le' upega tafaʻilagi:

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

Lau New WordPress Podcast Fafaga

O le mea manaia e uiga i lenei metotia sa mafai ai ona matou taofiofia matou lava suiga uma i totonu o le autu o le 'upega tafaʻilagi… leai ni faʻataʻitaʻiga o faila faila poʻo le faʻasaʻosaʻoina o ulutala, ma isi mea taua e lua:

  • permalinks - E te faʻaopopo le code i functions.php, oe manaʻomia le tatalaina tulaga> Permalinks i le WordPress admin. Lea e faʻafouina ai au permalink tulafono faʻapea o le tulafono na matou faʻaopopoina mo le toe tusi ua faʻatautaia nei.
  • Security - Afai o lau '' upega tafaʻilagi o SSL ma o lau podcast feed e leai, o le a e taufetuli i ni faʻafitauli ma le fefiloi o le saogalemu. Ou te matua fautuaina faʻamautinoaina lau 'upega tafaʻilagi ma lau talimalo talimalo talimalo saogalemu (i le https tuatusi e aunoa ma ni mea sese).
  • Faʻatasiga - O le a ou matua fautuaina le faʻaaogaina o lenei vaega-faʻapitoa podcast fafaga e sosoʻo ai i Google, Apple, Spotify ma soʻo se isi tautua. O le lelei iinei o le mafai nei ona e suia lau podcast talimalo soʻo se taimi e te manaʻo ai ma e le tau faʻafouina taʻitasi tautua mafuaʻaga.
  • Analytics - Ou te fautuaina lava le faia o se tautua pei Fafaga le mea e mafai ona faʻapitoa ai lau fafaga ma maua se faʻatulagaina o faʻamaumauga i luga o lona faʻaaogaina i tua atu o le tele o tautua tuʻuina atu. E faʻatagaina foʻi oe e le fusipaʻu e faʻatonutonu lau lolomiga i au auala lautele, o se mea sili ona manaia!

E te fia vaʻai pe o aoga? E mafai ona e faʻaogaina le Lafo Fafagaina Validator e faʻamaonia ai le fafaga!

3 Faamatalaga

  1. 1

    Na ou aveina le 2 1/2 aso o le suʻega i luga o le upega e maua ai se mea na ou manatu e tatau ona faia e le podcaster uma o le WordPress - talimalo le RSS feed mo le latou 3-pati-talimalo podcast i luga o la latou upega tafaʻilagi upega tafailagi.

    Faʻafetai lava! Ioe o lau tusitusiga tala fesili le fesili: aisea ua le avea ai lenei o le WordPress plugin ua uma? O le latalata na ou mauaina o WP RSS Aggregator, ae na toe tusia atoa le XML ma gagau le RSS.

  2. 2

    Hi
    Ua ou setiina laʻu '' upega tafaʻilagi WordPress e toe lolomiina laʻu RSS tonu lava pei ona faʻaalia, ma e aoga lelei, e lelei tele le faʻatonutonuina o aʻu lava ma faia se laʻasaga tele mai le faiga o le podcasting.

    E iai la saʻu fesili, ona o le auala na gaosia ai e le talimalo o le podcasting le RSS XML - e otometi lava ona fausia se upega tafaʻilagi mo vaega taʻitasi e faʻasino i le itulau HTML i luga o le upega tafailagi o le fale talimalo o le podcasting hostebebie ou te le o faʻaaogaina.

    Se mea pei <rss2><channel><item><link></link> pe a fai e aoga le maka. Poʻo le "rss2> auala> aitema> sootaga"

    E faʻaaoga e le Apple Podcast lenei faʻamaumauga XML e faʻaali ai se fesoʻotaʻiga tele i luga o lana itulau mo vaega taʻitasi. Ae oute le faʻaaogaina lena freebie website mai laʻu podcasting host (Podbeans). Ou te manaʻomia le tusi i laʻu lava 'upega tafaʻilagi - o le RSS feed o loʻo ou vaʻaia e talimalo ai.

    E te manatu e mafai ona faʻataʻitaʻia le XML o loʻo sau e sui ai soʻotaga i totonu mai le podbeans.com i le my-website.com?

    • 3

      E mafai ona fai lenei mea, ae e tatau foi ona e tusia le code e faʻatonu ai le failaina o faila (pei o le MP3). O le mea moni ou te le faia lenei mea ona o le tele o '' upega tafaʻilagi e le faʻapitoa mo le tele o faila e manaʻomia ma podcast.

O le'a sou manatu?

O lenei 'upega tafaʻilagi e faʻaaogaina le Akismet e faʻaitiitia le spam. Aoao pe faapefea ona faʻasoa lau faʻamatalaga faʻamatalaga.