Tinye Ntanetị Podcast na Mpụga na faili ntanetịime gị

Ọrụ WordPress Podcast Ọrụ

Pọdkastị na-ewu ewu n'ịntanetị na-eji WordPress dịka usoro ikpo okwu ha maka ozi gbasara pọdkastị ha yana ibipụta ọtụtụ ozi gbasara ngosi ọ bụla. Agbanyeghị, ha na-anabata pọdkastị n'onwe ya na ntanetị Bochum na mpụga. Ọ bụ ihe na-enweghị ntụpọ nye ndị ọbịa na saịtị ahụ - mana enweghị otu atụmatụ nke ndị ọrụ na-adịghị ahụ anya mana ndị na-awagharị dịka Google.

Google kwupụtara nke a na nkwado ha:

Na mgbakwunye, ọ bụrụ na ijikọ ndepụta RSS gị na ibe obibi, ndị ọrụ na-achọ aha gị pọdkastị nwere ike ịnweta nkọwa nke pọdkastị gị yana carousel nke ngosipụta maka ngosi gị na Google Search. Ọ bụrụ na ị nyeghị peeji nke jikọtara, ma ọ bụ Google enweghị ike ịkọwa ihu akwụkwọ mbụ gị, mmemme gị nwere ike ịpụta na nsonaazụ ọchụchọ Google, mana naanị jiri otu pọdkastị ndị ọzọ jikọta ya na otu isiokwu ahụ.

Google - Nweta pọdkastị gị na Google

 Site na ndị ọrụ abụọ ahụ, ịnwere ike ịnweta mkpuchi dị mma na Google:

Pọdkastị na Google SERP

Ihe ntanetị nke saịtị ahụ na-ekpughe ndepụta ntanetị, ma ọ bụghị n'ezie pọdkastị ndepụta - nke a na-akwado na mpụga. Companylọ ọrụ ahụ chọrọ idobe ndepụta blog ya ugbu a, yabụ anyị chọrọ itinye nri ọzọ na saịtị ahụ. Nke a bụ otu:

  1. Anyị kwesịrị ịme a ọhụrụ ndepụta n'ime isiokwu WordPress ha.
  2. Anyị kwesịrị weghachite ma bipụta ndepụta Podcast na mpụga na ndepụta ọhụrụ ahụ.
  3. Anyị kwesịrị tinye njikọ na isi nke saịtị WordPress nke na-egosiputa URL nri ọhụrụ.
  4. Ego: Anyị kwesịrị ihichapụ ndepụta ndepụta Podcast ọhụụ ka anyị wee ghara ịdabere na querystrings na ike degharia uzo na URL mara mma

Etu esi tinye nri ohuru na WordPress

N'ime isiokwu gị ma ọ bụ (nke akwadoro nke ukwuu) faịlụ nwata arụ ọrụ.php, ị ga-achọ itinye nri ọhụrụ ma gwa WordPress otu ị ga-esi wuo ya. Otu ihe edeturu na nke a… ọ ga-ebipụta nri ọhụrụ na https://yoursite.com/?feed=podcast

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

Weghachite ndepụta Podcast na Mpụga ma Bipụta Ya Na Nri WordPress

Anyị gwara WordPress na anyị ga-eji Podcast mee ihe render_podcast_feed, Ya mere, anyị chọrọ ugbu a iji weghachite ndepụta mpụga (akpọrọ https: //yourexternalpodcast.com/feed/ na oru di n'okpuru ma megharia ya n'ime WordPress n'oge aririọ. Otu ederede… WordPress ga-echekwa nzaghachi.

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

Rewrite New Feed gị na Nice URL

Nke a bụ ntakịrị onyinye. Cheta otu esi ebipute ndepụta a na querystring? Anyị nwere ike ịgbakwunye ọchịchị idegharị na function.php iji gbanwee nke ahụ site na URL mara mma:

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

Ugbu a, a na-ebipụta ndepụta ọhụrụ ahụ na https://yoursite.com/feed/podcast/

Tinye Otu Njikọ na Nri Dị N’isi Gị

Nzọụkwụ ikpeazụ bụ na ịchọrọ ịgbakwunye njikọ n'ime mkpado isi nke saịtị WordPress gị ka ndị na-agagharị agagharị wee chọta ya. N'okwu a, anyị chọrọ ịkọwa ndepụta ahụ dị ka nke mbụ edepụtara (n'elu blọọgụ na faili ntanetịime), yabụ anyị tinye ihe kachasị mkpa nke 1. also ga-achọkwa imelite aha na njikọ ahụ wee jide n'aka na ọ naghị 't dakọtara aha ndepụta ọzọ na saịtị ahụ:

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

Gị WordPress ọhụrụ Podcast nri

Ihe dị mma banyere usoro a bụ na anyị nwere ike ijide onwe anyị mgbanwe niile dị na saịtị ahụ… enweghị faịlụ ndebiri ma ọ bụ ndezi nke isi, wdg.

  • Permalinks - Ozugbo ịgbakwunye koodu na functions.php, ị ga-emepe Ntọala> Permalinks na WordPress Admin. Nke ahụ ga-enye ume ọhụrụ gị permalink iwu nke mere na koodu anyị kwukwara maka ideghari na-emejuputa atumatu ugbu a.
  • Security - Ọ bụrụ na saịtị gị bụ SSL na ndepụta pọdkastị gị abụghị, ị ga-abanye nsogbu na nchekwa agwakọtara. Aga m akwado ịkwado ma saịtị gị na Bochum gị na-echekwa nke ọma (na https adreesị na-enweghị njehie).
  • Mmekọrịta - M ga-akwadoro iji ngalaba a na-akọwa Podcast na-ezigara Google, Apple, Spotify na ọrụ ọ bụla ọzọ. Uru dị ebe a bụ na ị nwere ike ịgbanwe ụlọ ọrụ pọdkastị gị oge ọ bụla ịchọrọ ma ọ gaghị enwe ike imelite ndepụta isi ọrụ ọ bụla.
  • Analytics - Achọrọ m n'onwe m ịnwe ọrụ dịka FeedPress ebe ị nwere ike ịhazi ndepụta gị ma nweta nsuso etiti etiti na iji ya karịrị ihe ọtụtụ ọrụ na-enye. FeedPress na - enyekwa gị ohere iji aka rụọ ọrụ na ntanetị gaa na ntanetị ọhaneze gị, ihe dị oke mma!

Chọrọ ịhụ ma ọ na-arụ ọrụ? Nwere ike iji Nkedo ndepụta Validator iji nyochaa njirimara ndepụta!

3 Comments

  1. 1

    O were m ụbọchị 2 1/2 na-achọ ụgbụ iji chọta ihe m chere na pọdkastị WordPress ọ bụla ga-achọ ịme - nọrọ na ntanetị RSS maka pọdkastị ha na-akwado nke atọ na saịtị WordPress ha.

    Daalụ! O doro anya na isiokwu gị na-ajụ ajụjụ a: gịnị kpatara na ọ bụghị nke a WordPress mgbakwunye? Onye kacha nso m hụrụ bụ WP RSS Aggregator, mana ọ degharịrị XML kpamkpam ma mebie RSS.

  2. 2

    Hi
    Edebela m WordPress saịtị m ka m degharịa m RSS dị ka egosiri, ọ na-arụkwa ọrụ nke ọma, ọ dị mma ijikwa onwe m ma buru nnukwu usoro nke usoro Podcasting.

    Enwere m ajụjụ ọ bụla, n'ihi ụzọ m si enweta ụlọ ọrụ na-emepụta RSS XML - ọ na - ewepụta njikọ web maka ihe ọ bụla na - arụtụ aka na peeji HTML na websaịtị nnwere onwe nnabata nke anaghị m eji.

    Ihe dika <rss2><channel><item><link></link> ọ bụrụ na akara ahụ na-arụ ọrụ. Ma ọ bụ “rss2> ọwa> ihe> njikọ”

    Apple Podcast na-eji data XML a gosipụta nnukwu njikọ na ibe ya maka ihe ọ bụla. Mana anaghị m eji mkpokọta freebie sitere na ndị ọbịa m (Podbeans). Achọrọ m ya iji tụọ ebe nrụọrụ weebụ nke m - ebe a na-akwado ndepụta RSS m na-achịkwa.

    Ì chere na ọ ga-ekwe omume ịgbanwe XML na-abata ịgbanwe njikọ dị na ya site na podbeans.com na my-website.com?

    • 3

      Enwere ike ịme nke a, mana ị ga-edekwa koodu iji rịọ maka faịlụ ndị anabatara (dịka MP3). Agaghị m eme nke a n'eziokwu na ọtụtụ ndị na-elekọta weebụ anaghị emeziwanye ihe maka nnukwu faịlụ dị na pọdkastị.

Kedu ihe ị chere?

Ebe a na-eji Akismet iji belata spam. Mụta otu esi etinye usoro data gị.