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

Come aggiungere un box informativo sull’autore nei post di WordPress (5 modi)

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete aggiungere una casella biografica dell’autore ai vostri post su WordPress?

Il riquadro della biografia dell’autore è una piccola sezione in cui è possibile visualizzare informazioni sull’autore del post, mostrare i collegamenti ai social media e altro ancora. Tuttavia, alcuni temi di WordPress non hanno questa funzione integrata, oppure è possibile personalizzarla.

In questo articolo vi mostreremo come aggiungere facilmente un box informativo sull’autore al vostro blog WordPress.

How to add an author info box in WordPress posts (4 ways)

Perché aggiungere un riquadro informativo sull’autore in WordPress?

Per impostazione predefinita, la maggior parte dei temi WordPress visualizza il nome dell’autore su un post del blog, ma non altre informazioni su di lui.

Mostrare la persona reale che sta dietro al contenuto aiuta a creare credibilità con i lettori e può rafforzare l’autorità del sito.

Anche se una pagina “Chi sono” può essere utile, non tutti i lettori si prenderanno il tempo di visitarla. Inoltre, se avete un sito WordPress con più autori, un box autore può essere utile ai vostri lettori che vogliono saperne di più sull’autore di ogni post.

Le Author Box offrono inoltre agli autori un ulteriore incentivo a contribuire più spesso e a interagire con i lettori, poiché possono condividere il proprio sito web e i link dei social media per aumentare i propri follower.

Se volete che un maggior numero di utenti invii contenuti al vostro sito web, un box informativo per gli autori è un ottimo modo per attirare scrittori in cerca di visibilità e di nuovo pubblico.

Detto questo, vi mostriamo come aggiungere un riquadro informativo sull’autore in WordPress. Utilizzate i link rapidi qui sotto per passare direttamente al metodo che desiderate utilizzare.

Metodo 1: Aggiungere il riquadro informativo sull’autore utilizzando le impostazioni del tema di WordPress

Alcuni dei migliori temi WordPress sono dotati di un riquadro informativo sull’autore che viene visualizzato automaticamente sotto ogni articolo.

Per prima cosa, occorre verificare se il tema attuale supporta un riquadro informativo sull’autore.

Per farlo, basta andare su Utenti ” Tutti gli utenti nel pannello di amministrazione di WordPress.

Quindi, passare il mouse sul profilo utente che si desidera modificare e fare clic sul link “Modifica”.

Go to users page

Si accede così alla schermata di modifica del profilo.

Scorrere la pagina fino alla sezione “Informazioni biografiche” per aggiungere la biografia dell’autore. È anche possibile utilizzare l’HTML in questo campo per aggiungere manualmente i link ai profili dei social media dell’autore.

Enter author bio

La foto del profilo dell’autore viene recuperata automaticamente dal servizio Gravatar. Se l’autore ha già creato un account, questa viene visualizzata automaticamente.

Una volta terminato, assicurarsi di fare clic sul pulsante “Aggiorna profilo” in fondo alla pagina per salvare le modifiche.

A questo punto, potete visualizzare qualsiasi articolo del vostro sito scritto da quell’autore e vedrete il riquadro della biografia dell’autore in tempo reale.

Author bio example theme

Metodo 2: Aggiungere un riquadro informativo sull’autore in WordPress utilizzando un plugin gratuito per WordPress

Se il vostro tema non ha l’opzione di mostrare il riquadro della biografia dell’autore o se volete personalizzarne l’aspetto, questo metodo fa al caso vostro.

Per farlo, utilizzeremo il plugin Author Bio Box. Si tratta di uno dei migliori plugin per WordPress che consente di aggiungere semplicemente un box biografico personalizzabile al proprio sito.

La prima cosa da fare è installare e attivare il plugin. Per maggiori dettagli, consultate la nostra guida per principianti su come installare un plugin di WordPress.

Dopo l’attivazione, è necessario visitare Impostazioni ” Author Bio Box per configurare le impostazioni del plugin.

Qui si possono scegliere i colori, le dimensioni del gravatar per la foto dell’autore, la posizione in cui visualizzare il riquadro della biografia dell’autore e altro ancora.

Author Bio Box plugin settings

Una volta terminato, assicurarsi di fare clic sul pulsante “Salva modifiche” in fondo alla schermata per memorizzare le modifiche.

Successivamente, è necessario visitare Utenti ” Tutti gli utenti e fare clic sul link “Modifica” sotto l’utente a cui si desidera aggiungere una biografia.

Go to users page

Quindi, scorrere fino alla sezione “Informazioni di contatto” nella schermata di modifica del profilo.

Qui è possibile aggiungere i link ai social media per i profili dei vostri autori. Il plugin mostrerà solo le icone dei social network in cui è stato inserito un URL.

Add author contact info

Successivamente, scorrere fino alla sezione “Informazioni biografiche” per aggiungere la biografia dell’autore.

È anche possibile utilizzare l’HTML in questo campo per aggiungere manualmente i link o utilizzare le opzioni di formattazione HTML di base.

Add author bio

Una volta terminato, assicurarsi di fare clic sul pulsante “Aggiorna profilo” per salvare le modifiche al profilo utente.

È ora possibile visitare qualsiasi articolo scritto da quell’utente per vedere la casella informativa sull’autore in azione.

Author info box example

Metodo 3: Visualizzare il riquadro informativo sull’autore nell’area widget della barra laterale di WordPress

Volete mostrare le informazioni sull’autore nella barra laterale o nell’area widget, invece che sotto l’articolo? Se sì, questo metodo fa al caso vostro, perché consente di mostrare le informazioni sull’autore in un widget della barra laterale.

Per questo metodo, è necessario installare e attivare il plugin Meks Smart Author Widget. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Dopo l’attivazione, è necessario visitare Aspetto ” Widget nella dashboard di WordPress.

Quindi, fare clic sull’icona del blocco aggiuntivo “Più” nell’area del widget “Sidebar”.

Add new widget block

Successivamente, è necessario cercare “Meks Smart Author”.

Quindi, fare clic sul blocco per selezionarlo.

Add Meks Smart Author block

Il widget è dotato di una serie di opzioni per personalizzare la sua visualizzazione.

L’opzione più importante da selezionare è la casella di controllo accanto a “Rileva automaticamente l’autore”.

Enable auto detect author

Quindi, fare clic sul pulsante “Salva” per memorizzare le impostazioni del widget.

Ora potete visitare il vostro sito web per vedere il widget della biografia dell’autore in azione.

Sidebar author bio box example

Questo plugin recupera le informazioni sugli utenti dal loro profilo WordPress. Voi o i vostri autori dovete inserire le informazioni bio modificando i loro profili.

Per saperne di più sulla modifica dei profili utente, consultate la nostra guida su come aggiungere nuovi utenti e autori al vostro blog WordPress.

Metodo 4: Aggiunta di un riquadro informativo sull’autore tramite l’aggiunta di codice a WordPress

Questo metodo è riservato agli utenti più esperti perché richiede la modifica dei file del tema di WordPress. Se non l’avete mai fatto prima, consultate la nostra guida su come copiare e incollare il codice in WordPress.

Quindi, è possibile aggiungere il seguente snippet di codice al file functions.php, in un plugin specifico per il sito o utilizzando un plugin di snippet di codice.

function wpb_author_info_box( $content ) {
 
global $post;
 
// Detect if it is a single post with a post author
if ( is_single() && isset( $post->post_author ) ) {
 
// Get author's display name
$display_name = get_the_author_meta( 'display_name', $post->post_author );
 
// If display name is not available then use nickname as display name
if ( empty( $display_name ) )
$display_name = get_the_author_meta( 'nickname', $post->post_author );
 
// Get author's biographical information or description
$user_description = get_the_author_meta( 'user_description', $post->post_author );
 
// Get author's website URL
$user_website = get_the_author_meta('url', $post->post_author);
 
// Get link to the author archive page
$user_posts = get_author_posts_url( get_the_author_meta( 'ID' , $post->post_author));
 
if ( ! empty( $display_name ) )
 
$author_details = '<p class="author_name">About ' . $display_name . '</p>';
 
if ( ! empty( $user_description ) )
// Author avatar and bio
 
$author_details .= '<p class="author_details">' . get_avatar( get_the_author_meta('user_email') , 90 ) . nl2br( $user_description ). '</p>';
 
$author_details .= '<p class="author_links"><a href="'. $user_posts .'">View all posts by ' . $display_name . '</a>';  
 
// Check if author has a website in their profile
if ( ! empty( $user_website ) ) {
 
// Display author website link
$author_details .= ' | <a href="' . $user_website .'" target="_blank" rel="nofollow">Website</a></p>';
 
} else {
// if there is no author website then just close the paragraph
$author_details .= '</p>';
}
 
// Pass all this info to post content
$content = $content . '<footer class="author_bio_section" >' . $author_details . '</footer>';
}
return $content;
}
 
// Add our function to the post content filter
add_action( 'the_content', 'wpb_author_info_box' );
 
// Allow HTML in author bio section
remove_filter('pre_user_description', 'wp_filter_kses');

Questo codice recupera semplicemente le informazioni sull’autore e le visualizza sotto i post di WordPress.

Si consiglia di aggiungere questo codice con WPCode, il miglior plugin di snippets di codice per WordPress. Rende sicura e facile l’aggiunta di codice personalizzato in WordPress, senza modificare il file functions.php del tema.

Per iniziare, è necessario installare e attivare il plugin gratuito WPCode. Se avete bisogno di aiuto, consultate questo tutorial su come installare un plugin di WordPress.

Dopo l’attivazione, accedere alla pagina Code Snippets ” + Add Snippet dalla dashboard di WordPress.

Da qui, trovare l’opzione “Aggiungi il tuo codice personalizzato (nuovo snippet)” e fare clic sul pulsante “Usa snippet” sotto di esso.

Add new snippet

Quindi, aggiungete un titolo per il vostro snippet e incollate il codice di cui sopra nella casella “Anteprima codice”.

Non dimenticate di scegliere “PHP Snippet” come tipo di codice dall’elenco a discesa sul lato destro dello schermo.

Paste code snippet into WPCode and choose code type

A questo punto, è sufficiente spostare l’interruttore da ‘Inattivo’ ad ‘Attivo’ e premere il pulsante ‘Salva snippet’.

Activate and save code snippet WPCode

A questo punto, è necessario creare uno stile per questo riquadro informativo sull’autore, in modo che abbia un aspetto gradevole e si adatti al vostro tema WordPress. Se non conoscete i CSS, consultate la nostra guida su come aggiungere facilmente CSS personalizzati al vostro sito WordPress.

Quindi, andare su Aspetto ” Personalizzazione nel pannello di amministrazione di WordPress.

Si apre il pannello di personalizzazione del tema WordPress. È necessario fare clic sulla scheda “CSS aggiuntivi”.

WordPress customizer additional CSS

Consente di aggiungere codice CSS personalizzato direttamente al tema WordPress e di vedere le modifiche in tempo reale.

Ecco alcuni esempi di codice CSS per aiutarvi a iniziare:

.author_bio_section{
background-color: #F5F5F5;
padding: 15px;
border: 1px solid #ccc;
}
 
.author_name{
font-size:16px;
font-weight: bold;
}
 
.author_details img {
border: 1px solid #D8D8D8;
border-radius: 50%;
float: left;
margin: 0 10px 10px 0;
}

Quindi, aggiungere il codice direttamente nella casella “CSS aggiuntivo”.

Quindi, fare clic sul pulsante “Pubblica” per rendere effettive le modifiche.

Add CSS code and publish

Ora è possibile visitare uno dei post del blog WordPress e vedere il nuovo riquadro informativo sull’autore.

Ecco come appariva il riquadro della biografia dell’autore sul nostro tema.

Author bio after code example

Metodo 5: Aggiungere un riquadro informativo sull’autore in WordPress con Author SEO di AIOSEO

All in One SEO (AIOSEO) è il miglior plugin SEO per WordPress sul mercato, con oltre 3 milioni di utenti. È possibile utilizzarlo anche per aggiungere box di informazioni dettagliate sull’autore in qualsiasi post o pagina di WordPress.

A differenza degli altri metodi, questo metodo vi aiuterà a migliorare la vostra SEO utilizzando il potente addon Author SEO di AIOSEO. Vi permette di mettere in mostra la vostra esperienza, competenza e autorevolezza per soddisfare le linee guida sui contenuti E-E-A-T di Google.

Per iniziare, è necessario installare e attivare il plugin All in One SEO. Se avete bisogno di aiuto, consultate il nostro tutorial su come installare un plugin di WordPress.

Nota: è possibile utilizzare una versione gratuita di All in One SEO. Tuttavia, per accedere alle funzioni SEO per gli autori, è necessario il piano AIOSEO Pro.

Una volta attivato e configurato il plugin, andare su Utenti ” Tutti gli utenti dalla dashboard di WordPress. Quindi, fare clic sul nome dell’autore o sul link “Modifica” sotto di esso.

Edit a user profile in WordPress

Si aprirà la pagina “Modifica utente” per quell’autore. In questa pagina, è necessario fare clic sulla scheda “Author SEO”.

Click on the Author SEO tab

Dalla sezione Author SEO, è possibile aggiungere informazioni come l’istruzione, il datore di lavoro e il titolo di lavoro per convalidare i propri segnali E-E-A-T.

Add author information for E-E-A-T

Potete anche aggiungere categorie di argomenti che conoscete per mostrare le vostre aree di competenza ai motori di ricerca e ai lettori.

Add topics of expertise to author info

Nota: queste categorie di argomenti devono essere inserite prima nel pannello di impostazioni Aspetto di ricerca Avanzate Argomenti dell’esperienza dell’autore in All in One SEO.

Successivamente, è possibile scorrere verso il basso per aggiungere un’immagine dell’autore, un estratto dell’autore e una biografia completa dell’autore.

Add author bio and image

È inoltre possibile visualizzare i profili social nel riquadro delle informazioni sull’autore, inserendo l’URL del proprio profilo per Facebook, Instagram, Twitter, YouTube e altro ancora.

Add social profiles to author info box

C’è anche un’impostazione “Aggiungi bio dell’autore ai post” che si può attivare o disattivare.

Se questa impostazione è attivata, All in One SEO visualizzerà automaticamente una biografia compatta dell’autore in fondo ai vostri post.

Enable or disable Append Author Bio to Posts setting

È possibile disattivare l’impostazione se si desidera aggiungere manualmente le biografie compatte o complete dell’autore in fondo ai post utilizzando i blocchi bio dell’autore di AIOSEO. Per maggiori dettagli, consultare questa guida sull’aggiunta di blocchi autore nei post.

Per questa esercitazione, lasceremo l’impostazione attivata per aggiungere automaticamente le biografie degli autori ai post.

Una volta terminata la compilazione delle informazioni sull’autore, non dimenticate di fare clic sul pulsante “Aggiorna utente” per memorizzare le modifiche.

Ora, potete visitare uno dei vostri post di WordPress per vedere il vostro nuovo riquadro informativo sull’autore in azione.

Author info box created with AIOSEO

Bonus: Visualizzazione del riquadro informativo sull’autore in WordPress con il plugin Premium Page Builder

Se volete creare un tema WordPress completamente personalizzato e poter visualizzare facilmente un riquadro informativo sull’autore in qualsiasi punto del vostro sito, vi consigliamo di utilizzare SeedProd.

SeedProd è il miglior costruttore di pagine drag and drop per WordPress. Consente di creare facilmente temi e layout di pagina personalizzati per WordPress, senza bisogno di codifica.

Viene fornito con oltre 300 modelli di temi e pagine che si possono importare con un solo clic. I modelli di tema includono tutte le parti necessarie per un sito web, tra cui la homepage, la pagina singola, il post singolo, l’archivio del blog, la pagina dei contatti e altro ancora.

SeedProd theme templates

È possibile personalizzare il tema in qualsiasi modo utilizzando il costruttore visuale del tema. SeedProd semplifica le cose offrendo oltre 90 blocchi già pronti che si possono trascinare e rilasciare su qualsiasi pagina, compreso un blocco “Author Box”.

Drag and drop Author Box block in SeedProd

Dopo aver aggiunto il blocco Author Box alla pagina, è sufficiente fare clic su di esso per modificarne i dettagli.

È possibile modificare la tipografia, la dimensione dei caratteri, l’allineamento, il colore dello sfondo, il bordo, attivare o disattivare l’immagine del profilo e altro ancora.

Configure author box settings

Una volta terminata la personalizzazione, è sufficiente attivare il nuovo tema SeedProd.

Enable your SeedProd theme

Ora è possibile visitare il proprio sito WordPress e vedere il riquadro informativo personalizzato sull’autore.

Example of a SeedProd author info box

Per maggiori dettagli, consultate il nostro tutorial su come creare un tema WordPress personalizzato con SeedProd.

Speriamo che questo articolo vi abbia aiutato a capire come aggiungere un box informativo sull’autore ai post di WordPress. Potreste anche voler consultare la nostra guida su come scegliere il miglior hosting WordPress e la nostra selezione di esperti dei migliori software di chatbot AI per il vostro sito web.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

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.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

65 commentiLascia una risposta

  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

    thank you for this incredibly helpful guide!!!

    my WordPress theme had a basic author bio box, but it doesn’t allow me to include links to the author’s social media profiles.
    I was about to hire a developer to add that feature but I have tried out Author Info Box as you have highlighted and it has fixed this issue.
    You saved me some bucks there…haha! :-)

  3. Jiří Vaněk says

    Thanks for providing the complete php code. In Elementor, I solve it with a widget, but outside of Elementor, I would very much like to use a ready-made solution from you.

    • WPBeginner Support says

      We don’t have a specific method we would recommend for pages at the moment but we will look into the possibilities in the future.

      Admin

  4. Bojan says

    Please, replace this code with this if you want to show only on blog posts:

    // Detect if it is a single post with a post author
    if ( is_single() && isset( $post->post_author ) ) {

    with:
    // Detect if it is a single post with a post author
    if ( is_singular(‘post’) && isset( $post->post_author ) ) {

  5. Mark Beese says

    I would like to add something like the option of related stories to the author box, but show a random selection of others posts/stories from that author. Is that possible?

  6. Ramon says

    This is excellent, works out of the box.

    Keep in mind that you might want to add a “title” attribute to a href links ..

  7. Kelly says

    I came here for your opinion because my SEO teacher (paid class) says that even though my website/URL is my name, Google needs to know who wrote the posts. I write them (with the exception of guest writers from time to time). You said, “For a single-author WordPress blog, you can just add an about me page.” Do you mean just have an about me page on your blog? Or link to the about me page within the author box at the end of posts?

    • WPBeginner Support says

      That would be a personal preference decision but having an about page publicly visible was what we recommended. It is not required in every article.

      Admin

  8. Rozard says

    I added the code in Theme function.php. It’s working better than a plugin. I just need little bit help if that is possible. My website is not in English, which is right to left. I added a css code that start paragraph from right to left, now the problem is that most of the author bios are in English, is there way to modify the alignment of bios to make left to right?
    I really appreciate your help. Thank you

  9. Jerry says

    I have an author info box that shows at the end of every blog post. I want it to be shown on my About me static page as well apart from the blog post. How can I enable this?

    • WPBeginner Support says

      It would depend on what is adding the author box, if your theme is adding it you would want to reach out to your theme’s support for having it appear on a page.

      Admin

  10. Lauren Colquhoun says

    Hello

    Could you please tell me how to only display the author bio box for certain categories? Thank you

  11. Gustavo Razzetti says

    Hi I used the plugin and now it’s showing two bios–the one generated by the plugin and the one created by WordPress (which looks uglier and I don’t want to use). How I avoid having two bios?.

    • WPBeginner Support says

      If your theme included its own author bio, you would need to reach out to the theme’s support for how to remove it

      Admin

  12. Prajyot Kumbharjuvekar says

    Looks like the Guerrilla’s Author Box plugin is no longer available… Do you can you suggest any alternatives? thank you

    • WPBeginner Support says

      While we don’t have a recommended plugin at the moment, we will certainly look to update this article with an alternative

      Admin

  13. Louis Chaussé says

    Hi,

    I have a problem with method #3

    I added the php code to the functions.php file and the css to additonal css section in WP

    Everything is working except that the bio is displaying twice on the page…

    Once at the proper place at the bottom of the post, and it is also displaying at the top of the page (before header)

    Any thoughts?

  14. Warwick Levey says

    Is there anyway to disable to author box for profiles which don’t have any info in the author bio?

    We use a custom field to add authorship to guest posts, and we don’t have a bio for most of our guests, and the blank box at the bottom of the page is z bit of an eyesore for these posts.

    Thanks in advance for any help

  15. Elizabeth Thompson says

    Does this mean I have to give them user access????
    This doesn’t make sense for me? THey’re random people?
    Thanks

    re: Each author on your site will need to add their biographical information and links to their user profiles. They can do this by logging in to their WordPress account on your website and then click on the Profile link from the WordPress admin menu.

  16. Morteza says

    Hi to all!

    How to add EDD vendor name in EDD receipt?
    I add this to my downloads page by adding:
    echo get_the_author_meta( ‘name_of_store’, $post->post_author );
    and
    echo get_the_author_meta( ‘display_name’, $post->post_author );
    ,
    It seems in this case I need to hook this, BUT HOW?

    thanks

  17. Mick says

    Thanks for this which is what I was looking for. Although now I see it with the bio in 2 places, what I would like is that the bio at the end of each post different to the bio down the side.

    Is this possible or do I have to remove Meks and replace it with some other plugin?

    Thanks

  18. Wilson Lee says

    Hey,
    This was just what I was looking for. I think I will stick with installing a plug-in though.
    Coding makes my head hurt.
    Thanks for the great wordpress content!

    Wilson

    • Matt Stephens says

      hahaha! I thought exactly the same thing while reading through the post. Why go through the stress of coding, when there’s a plugin to get the job done?

  19. ingresos pasivos says

    Hi, I was wondering how I can add a margin higher than my box using the code that you left us.

    My box shows very close to the letters of my post, I hope your answer.

    A big greeting.

  20. Hina Ilyas says

    I have added the Guerrilla’s author box, but author details still don’t show on my posts. I can only see these three lines:

    Author: Hina Ilyas
    Filed Under: Weekly Rundown
    Tags:

    i don’t understand what is the issue!

  21. Magnus says

    If I use method 3, it only shows the author info box when viewing a post.

    The post itself doesn´t show at all.

    Any suggestions?
    Thank you in advance.

    • Andy W. says

      You may have found the answer for this already (it’s kind of disappointing someone makes this posts and doesn’t respond to the questions), but I used this to display the box on only certain categories.

      If you want to display the author box only on single posts that are assigned to any category, change:

      // Detect if it is a single post with a post author
      if ( is_single() && isset( $post->post_author ) ) {

      to

      // Detect if it is a single post with a post author
      if ( is_single() && isset( $post->post_author ) && has_category() ) {

      If you want to display the box ONLY in a certain category, then change the above to:

      // Detect if it is a single post with a post author
      if ( is_single() && isset( $post->post_author ) && in_category(‘X’) ) {

      Change “X” to the category ID.

      To include more than one category, simply replay “X” with an array() of category IDs:

      // Detect if it is a single post with a post author
      if ( is_single() && isset( $post->post_author ) && in_category( array(‘X’, ‘X’) ) ) {

      • Joseph says

        Hi andy can you help me, i-followed the method #3, how can i hide it to my wocommerce product page description here’s the site

        • Joseph says

          i just solved it, i used this code of yours:

          // Detect if it is a single post with a post author
          if ( is_single() && isset( $post->post_author ) && has_category() ) {

          thanks for this

  22. Shraddha Kapoor says

    Hi. I am facing a problem while adding hyperlink in the author bio. I tried add hyper link using anchor text at edumovlive.com but failed. Can anyone help me to get hyperlink in author bio.

  23. Gabrielle says

    Hi, i added custom admin column: thumbnail to all users table
    , how can i print each user gravatar, by user id, inside this column?
    I added sucessfully featured image column inside all post table,
    that links each image to each post via edit link, is there a way to add gravatar column in all users that links to edit user?

  24. Nishat says

    Thanks for the post, great help. Is it possible to make the author box interactive? Like the bottom of this page?

    I would like something similar to the ‘as well as’ feature but I know nothing about CSS.

  25. gagan says

    I added author box using method 3 but it showing author box above sharing icons how to move this down near comment section??

  26. Amir says

    For method #3 which is really the simplest and the fastest (involves some php coding skills) I added a break tag on the line where it shows picture and text as follows. Because it looks odd when only the first line of the bio shows up next to the picture and the rest of the bio separately.

    $author_details .= ” . get_avatar( get_the_author_meta(‘user_email’) , 90 ) . ” . nl2br( $user_description ). ”;

  27. Deyo says

    The hard coding worked perfectly with a little style tweaking, many thanks!
    under the // Get author’s biographical information or description is the some kind of way to control the word or character count without having to edit the user bio itself? Maybe similar to controlling the excerpt length on a post page in functions?

  28. King says

    I dont know how to add codes via my functions.php i might get an error. Any plugin to add codes into functions.php?

    • Wajiha Rizvi says

      You have to add it after the closing php tag that looks like this ( ?> ) in you child theme’s functions.php file.

  29. Lorraine Reguly says

    Hi. I have three sites. For some reason, my author box automatically shows up on one of them. I had to install the Guerilla plugin to get it to show up on the others.

    Why would one site show it and not the other two???

  30. Shafi Khan says

    Hey There, Great article. The video attached to the post is not for instructions on “how to install a plugin” as written above it.

    It it is a mistake, please correct it :)

  31. sonja says

    Hi there, having trouble with the picture for the author box. I’ve moved the author widget to the sidebar for it to appear and it has along with the text but scratching my head on what to do to get the picture to show up also. I’m using a WordPress theme. Thanks for all your help!

  32. Christopher Simmons says

    Heya… dealing with this today. Theme has a nice author box, but missing the socials at bottom.

    Love your roll your own example, which we’re messing with “right now” — any chance you might expand on the example to include pulling in the “if socials” from the user meta, below the author’s website link ?

    TIA ! Thanks for another great article :-)

    (12 year WP user — so not just for beginners! )

  33. Natanael David says

    Hi, thanks for this! I’m having a lot of help from you guys! For this and other functions.

    One question: How can I set the max lenght in the Author description. Also, can I use a custom text for the box description in the single page and a full description in the Author page?

  34. moon says

    Hi,

    Thanks for your helpful information.

    I have a problem, but I don’t know how to describe it. I added a picture into article, and set it style=”float: right; margin-left: 20px;”

    It can show the web page well upon browsed on desktop computer, left hand side is content, and right hand side show picture.
    but it cannot show the web page well upon browsed on mobile phone, please refer below URL:

    Is it possible to show text first, and the picture under the text not around the picture?

    If so, how?

    Please try to help me out.

    Thanks in advance.

    Best regards,

  35. Mario says

    Hi guys,

    Do you know a way of inserting the author’s widget next to the post entry, but not in a sidebar? just as here:
    thanks!

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.