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 dodać wielu autorów (współautorów) do wpisów w WordPress?

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 chcesz dodać wielu autorów do wpisów w WordPress?

Wiele witryn internetowych ma wielu autorów pracujących nad tym samym artykułem. Ważne jest, aby importować wszystkich tych współautorów, ale domyślnie WordPress pozwala na dodanie tylko jednego autora do strony lub wpisu.

W tym artykule pokażemy, jak dodać wielu autorów dla wpisów w WordPress.

How to add multiple authors (co-authors) for posts in WordPress

Jak utworzyć wielu autorów (współautorów) wpisów w WordPressie?

Najprostszym sposobem na dodanie wielu autorów do wpisu WordPress jest skorzystanie z darmowej wtyczki Co-Authors Plus.

Na poniższym obrazku widać, że wtyczka ta umożliwia autoryzację każdego użytkownika, który jest już zarejestrowany w twojej witrynie internetowej WordPress.

Showing multiple authors in a multi-author WordPress blog

Co-Author Plus utworzył również nowy rodzaj użytkownika Guest Authors, który pozwala autorzy, którzy nie mają konta na twoim blogu WordPress.

Pierwszą rzeczą, którą musisz zrobić, to zainstalować i włączyć wtyczkę Co-Authors Plus. Jeśli potrzebujesz pomocy, zapoznaj się z naszym przewodnikiem na temat instalacji wtyczki WordPress.

Po włączeniu wtyczki, wystarczy edytować wpis, w którym chcesz przypisać wielu autorów.

W prawej karcie edytora treści wystarczy przewinąć do nowej sekcji „Autorzy” i kliknąć, aby ją rozwinąć.

Adding multiple authors to a WordPress website

W karcie Autorzy możesz kliknąć pole „Wybierz autora”, a następnie po prostu wpisać rodzaj nazwy zarejestrowanego użytkownika, któremu chcesz przypisać autorstwo. Gdy odpowiednia osoba pojawi się w rozwijanym menu, wystarczy kliknąć, aby dodać tego autora do twojego wpisu.

Creating a multi-author WordPress blog

Możesz teraz dodać wielu współautorów, postępując zgodnie z procesem opisanym powyżej.

Domyślnie WordPress pokaże tych współautorów w kolejności dodania ich do wpisu. Jeśli chcesz zmienić tę kolejność, po prostu kliknij strzałki w górę i w dół, które pojawiają się obok każdego nazwiska.

Changing the order of multiple WordPress authors

Jeśli chcesz usunąć współautora z wpisu, po prostu kliknij ikonkę X obok nazwiska tej osoby.

Po dodaniu wszystkich autorów, możesz opublikować lub zaktualizować swój wpis. Aby uzyskać pomoc w zarządzaniu twoimi autorami, zapoznaj się z naszym przewodnikiem na temat skutecznego przyciągania i zarządzania gościnnymi blogerami w WordPress.

Wyświetlanie wielu autorów na twoim blogu z wieloma autorami

W zależności od twojego motywu WordPress, ta wtyczka może nie wyświetlać automatycznie wielu autorów dla wpisów w WordPress. Oznacza to, że będziesz musiał edytować pliki twojego motywu.

Jeśli wcześniej nie edytowałeś tych plików, zapoznaj się z naszym przewodnikiem na temat kopiowania i wklejania kodu w WordPress.

Przed edycją kodu twojego motywu warto również utworzyć kopię zapasową. Kopie zapasowe pozwalają szybko przywrócić twoją witrynę WordPress na wypadek, gdyby coś poszło nie tak.

Istnieje wiele darmowych i płatnych wtyczek do tworzenia kopii zapasowych WordPress, w tym Duplicator. Aby uzyskać szczegółowe informacje, możesz również zapoznać się z naszym przewodnikiem na temat tworzenia kopii zapasowych twojej witryny WordPress.

Po utworzeniu kopii zapasowej należy edytować kod odpowiedzialny za wyświetlanie nazwy autora.

Kodem tym jest zazwyczaj funkcja the_author() lub the_author_posts_link().

W zależności od motywu, funkcja ta może znajdować się w pliku single.php, content.php lub functions. php twojego motywu. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem na temat tego, jak znaleźć pliki motywu do edycji w WordPress.

Po znalezieniu jednej z tych funkcji należy zastąpić ją poniższym fragmentem kodu:

if ( function_exists( 'coauthors_posts_links' ) ) {
    coauthors_posts_links();
} else {
    the_author_posts_link();
}

Zobaczmy, jak można stworzyć blog z wieloma autorami przy użyciu popularnego motywu OceanWP.

Jeśli otworzysz plik functions.php tego motywu, znajdziesz funkcję the_author_posts_link:

public static function the_author_posts_link( $link ) {
 
        // Add schema markup.
        $schema = oceanwp_get_schema_markup( 'author_link' );
        if ( $schema ) {
            $link = str_replace( 'rel="author"', 'rel="author" ' . $schema, $link );
        }
 
        // Return link.
        return $link;
 
    }

Aby wyświetlić wielu autorów w WordPress, wystarczy zastąpić tę sekcję poniższym fragmentem kodu:

public static function the_author_posts_link( $link ) {
 
        // Add schema markup.
        if ( function_exists( 'coauthors_posts_links' ) ) {
            coauthors_posts_links();
        } else {
            the_author_posts_link();
        }
         
        // Return link.
        return $link;
 
    }

Po dodaniu tego kodu przewiń ekran do dołu.

Następnie możesz kliknąć przycisk „Aktualizuj plik”.

The WordPress theme customizer

Teraz, jeśli przejdziesz na swoją witrynę, zobaczysz wielu autorów wpisów WordPress.

Alternatywa: Zamiast edytować pliki twojego motywu, co może zepsuć twoją witrynę internetową, możesz bezpiecznie dodać powyższy kod za pomocą wtyczki WPCode. Aby uzyskać instrukcje krok po kroku, zobacz nasz poradnik, jak łatwo dodać własny kod w WordPress.

Dodawanie autorów gościnnych do twojego bloga WordPress z wieloma autorami

Wtyczka Co-Authors Plus może wyszukiwać i wyświetlać zarejestrowanych użytkowników na twoim blogu WordPress z wieloma autorami.

Ale co, jeśli chcesz wyróżnić autora gościnnego, który nie ma jeszcze konta na twojej witrynie internetowej?

Chociaż można utworzyć konto dla autorów, nie zawsze jest to najbezpieczniejsza opcja.

Pomimo tego, że WordPress posiada role i możliwości użytkowników, danie komuś dostępu do obszaru administracyjnego lub uprawnień do pisania na twojej witrynie internetowej jest zawsze ryzykowne. Aby uzyskać więcej informacji na temat tego, jak zabezpieczyć twoją witrynę internetową, zapoznaj się z naszym kompletnym przewodnikiem po zabezpieczeniach WordPress.

Mając to na uwadze, możesz użyć Co-Authors Plus do tworzenia autorów gościnnych. W ten sposób możesz przypisać wielu autorów gościnnych do jednego wpisu bez konieczności uzyskiwania przez nich dostępu do twojego obszaru administracyjnego WordPress.

Aby utworzyć autora gościnnego, przejdź do Użytkownicy ” Autorzy gościnni. W tym miejscu możesz kliknąć „Utwórz nowego”.

Adding multi authors to your WordPress blog

Na następnym ekranie musisz wpisać wszystkie dane tej osoby w formularzu „Utwórz nowego autora gościnnego”.

Możesz również przesłać obrazek, który będzie działał jako awatar tego autora. O ile twój motyw obsługuje awatary, obraz ten pojawi się obok nazwy autora na twojej witrynie internetowej.

Adding WordPress multiple authors

Jeśli nie prześlesz awatara, WordPress będzie szukał dowolnego Gravatara, który jest odnośnikiem do adresu e-mail autora gościnnego. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem na temat zmiany domyślnego Gravatara na WordPressie.

Po wpisaniu wszystkich tych informacji, kliknij przycisk „Utwórz nowego autora gościnnego”.

WordPress utworzy teraz tę osobę jako autora gościnnego. Aby nadać jej status współautora, wystarczy wykonać tę samą procedurę opisaną powyżej.

Mamy nadzieję, że ten artykuł pomógł ci dowiedzieć się, jak dodać wielu autorów (współautorów) do wpisów w WordPress. Następnie możesz zapoznać się z naszym przewodnikiem na temat zarabiania pieniędzy na blogu online za pomocą WordPressa lub zobaczyć nasz ekspercki wybór najlepszych wtyczek i narzędzi SEO WordPress, z których powinieneś korzystać.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

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

32 komentarzeZostaw 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. Dennis Muthomi says

    hi, I’m about to hire my first inhouse writer for my website, and I want to make sure they get proper credit for their work. I noticed that in this article, you have „Written by:” and „Reviewed by:” sections at the top.
    It’s a great way to acknowledge the different roles people play in creating content. I’m curious – are you using a plugin to achieve this, or did you add a custom code snippet?

      • Dennis Muthomi says

        thank you for responding and confirming that you’re using a custom snippet to display multiple authors sir.
        well, I will just have to use the Co-Authors Plus plugin, it will get the job done.

    • WPBeginner Support says

      For the moment that is something we are testing, if we have a way we would recommend adding it we will be sure to share, for the moment you would need to modify your theme’s templates.

      Administrator

  3. Muhammad Qamar Shafique says

    Hi

    I want to add 2 profiles to a blog, 1 for the author who wrote that blog and the second for the editor, who reviewed that blog. Is there any way to do so? Any plugin?

  4. Kadon Hodson says

    For the site I am trying to use this plugin on, I don’t care about showing the multiple authors somewhere on my post. In fact, I am using it on a custom post type that does not show the authors on the front-end, anyway. What I need is for two authors to have the ability to edit the post in the back-end. When I set the plugin up, only the top author is able to view or edit the post. Do I still need to change the code to make it work? Or is there some other code that needs changed?

    • WPBeginner Support says

      You would sadly need to reach out to the plugin’s support if it is not giving access to the coauthors to edit.

      Administrator

  5. santiago says

    Guys,

    im having troubles with the name displayed on the post.

    for example i have added an author filling the fields how the pluging recommend. Display name Aaaa Bbbb, name Aaaa, surname Bbbb, email etc.

    And the post display „aaaa-bbbb” and don´t display name „Aaaa Bbbb”.

    Im using Zeen themme. Do you know what´s happening here?

    Thanks-

    • WPBeginner Support says

      You would want to ensure that you replaced the correct tag in your theme’s files. If you reach out to your theme’s support they should be able to point you toward the correct template tag

      Administrator

  6. Cedric N says

    I found the single.php file but it contains no „the_author_posts_link” line
    I’m using the poseidon theme
    Is the theme simply incompatible with the plugin?

    • WPBeginner Support says

      Hi Cedric,

      Your theme may be using template parts, in that case you may need to edit the template references in single.php file. Many WordPress themes use their own template_tags to display author bio, in that case you will need theme author’s help to add this.

      Administrator

  7. uday says

    Hello sir,

    I want select 2 authors by default.

    When I have add new post the me as authors selected right…but I want 2 different author selected….

  8. Antoninf says

    Hi, always wondering how can I place the co-authors’ box below the articles. Using this plugin for many time but still only for the top name. Can you help me out? Thanks.

  9. Rustyn Rose says

    I am not sure why anybody would promote this plug-in. The only real point of co-authors is for them to get public credit. A plug-in that only does the back-end and requires coding for the front-end defeats the point of a plug-in which is for people who don’t know how to do coding. That and they don’t keep it up to date anyway. How is this plug-in helpful?

    • Stacey P says

      In addition, the plugin performance has degraded since recent WP upgrades. It uses a wp_query using SQL_CALC_FOUND_ROWS, which, on large sites, causes huge processor overload. I’ve read good things about the BYLINES plugin, which has recently been acquired by the folks at PublishPress.

      But I’d love to explore other options as well to get around the problem.

  10. Waqas Ahmad says

    is there any one have idea about Genesis framework single.php file because i design my theme in Genesis framwork and there is only this code available genesis(); in single.php so how to add this code?

    if ( function_exists( 'coauthors_posts_links’ ) ) {
    coauthors_posts_links();
    } else {
    the_author_posts_link();
    }

  11. Ally says

    Hi! So I installed the plugin and added the guest authors, but I can’t quite find where to insert the code. My site is ran by WordPress, so the only place I can insert code is in „additional CSS,” and this doesn’t seem to do anything. Any ideas?

  12. John Romaine says

    Useful if you have only a few authors, but on large sites with hundreds of authors, this plugin is pretty much useless, especially if you have no idea who contributed to the post.

    I cant understand why you have to „search” for the authors. Shouldn’t this software be smart enough to know who contributed???

  13. Joe Ferris says

    I’m using a child theme of the SuperNews theme. I’ve searched the entire theme directory for any mention of the word 'author’ and found none.

    How can I make it work if I don’t have that template tag in my theme?

  14. Svend Rugaard says

    I cant seem to get it to work – my theme is „Premium” – but i cant seem to found what files to edit, i have put that command in functions.php –

    I can choose persons but it only show the „original” poster on my post.

    I have try to look for those files you mention, but they doesnt exist, or i dont exactly sure what i should look for

    My Theme is „Gauge”

  15. Umair says

    i have installed Co Authors Plus and added guest author successfully,
    after assigning post to guest author, when i click on author name, instead of showing all posts from that guest author, it redirects to main home page

  16. Jennifer says

    This plugin’s functionality should be baked into WordPress. It’s staggering that WordPress continues to tout itself as a CMS (no longer just a blog), but it has no concept of groups, or multiple authors working on a piece of content. Staggering. Good plugin though. Thanks

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ę.