Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak skonfigurować automatyczne wykrywanie kanałów RSS dla twojego WordPressa?

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy zauważyłeś, że gdy przejdziesz na WPBeginner, na pasku adresu URL znajduje się ikonka RSS. Ikonka ta często pojawia się na witrynach, które ustawiły automatyczne wykrywanie kanałów RSS. Ustawiając automatyczne wykrywanie, zachęcasz swoich użytkowników do subskrypcji, a także informujesz tych, którzy o tym nie wiedzą. Większość motywów importuje tę funkcję, która może być najważniejszą funkcją, którą powinieneś mieć w swoim motywie. W tym poradniku pokażemy, jak skonfigurować automatyczne wykrywanie dla twoich kanałów RSS WordPress.

RSS Auto Discovery

Otwórz twój plik header.php i wklej poniższe kody powyżej kodu </head>.

    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo(‘rss2_url’); ?>" />

    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo(‘rss_url’); ?>" />

    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo(‘atom_url’); ?>" />

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Comments Feed" href="<?php bloginfo(‘comments_rss2_url’); ?>" />

Wiele wiarygodnych witryn w branży podjęło ten krok, aby upewnić się, że ich czytelnicy subskrybują ich witryny. Powinieneś sprawdzić, czy te kody znajdują się w twoim pliku nagłówkowym, jeśli nie, to powinieneś je dodać. Nie zapomnij, że jeśli chcesz śledzić swoich subskrybentów RSS, powinieneś przekierować swoje kanały na FeedBurner.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

10 komentarzyZostaw odpowiedź

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. mohadese esmaeeli says

    Hello! Is having an RSS feed field for site SEO dangerous? There are various theories on this matter, and I appreciate it if you share your professional opinion. Also, under what conditions should one use RSS?

    • WPBeginner Support says

      No, having an RSS feed is not dangerous it can even help search engines crawl your content. Most sites should normally have an RSS feed.

      Administrator

  3. Belinda says

    I don’t think you mean below the /head code… I think you mean above it? As in, still within the head tags?? Let me know if I am misunderstanding something.

      • kf says

        Would you mind correcting the entry? It’s only been about 3 years now.

        I’ve blown 45 minutes trying to corroborate the above or below /head tag and just for giggles, scrolled down to read comments. No offense, but failing to correct the entry doesn’t give your site credibility. I have a technical site too but I don’t force my visitors to do any more work than they have to. The easier I make it, the more likely they are to give me money. Just sayin…

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.