Getting Your WordPress Byline to Display

Posted on June 9, 2008
Filed Under WordPress, php |

The other day a friend of mine started a new blog called Transformation of the Suns. He found a WordPress theme he liked, but after he added his first post, he noticed that his name didn’t appear on the page.

He asked me if I could help.

If you are an expert in php programming this would be easy. But for those of you who are not, here are the easy steps to customize your WordPress blog so that your name appears under your blog post title.

The first step is to edit the index.php page of your theme. You will find a line of code something like this: <div class=”main_title”><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></div>

You need to insert this small piece of code just before the closing </div> tag. Here is what you need to insert: <h5>by <?php the_author() ?></h5>

Obviously, it doesn’t have to be surrounded by a <h5> tag, but you do need to format it somehow. In this case, I opened up the style sheet and added a h5 heading and styled it appropriately, giving it a letter spacing of .4em.

And there is one more step. You need to add the same small bit of code to the single.php page to the same line as on the index.php page. When finished, the line looks like this: <div class=”main_title”><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a><h5>by <?php the_author() ?></h5>
 </div>.

That’s it.

This little bit of tweaking is important if you ever want to have a guest writer create a post on your blog. Everybody wants to receive their due credit.

Comments

87 Responses to “Getting Your WordPress Byline to Display”

  1. ????? ???????? on March 18th, 2010 10:58 pm

    He asked me if I could help.
    If you are an expert in php programming this would […….

    ? ?????????, ??, ??-?????, ?? ?????????? ??????. ??????? ??????? ???. ?????? ??? ? PM, ?????????….

  2. Kylie BattName on April 12th, 2010 12:34 am

    ??????????)))…

    ???????????? ?????? ?????? The other day a friend of mine started a new blog called Transformation of the Suns…..

  3. Kylie Batt on May 4th, 2010 5:33 am

    ? ?????????, ????? ?? ???? ??????, ?? ??????, ??? ?? ??????? ?????????? ???????….

    ???????? ??????????? He asked me if I could help.
    If you are an expert in php programming this would […….

  4. Kylie Batt on May 4th, 2010 8:14 am

    ??????? ????????? ????? ?????…

    ????????? ?????? He asked me if I could help.
    If you are an expert in php programming this would […….

  5. esrip-326 on May 14th, 2010 2:16 pm

    esrip-326…

    ????? ??????? ???? ?? ?? ?????? http://www.vn7.ru/, ??????? ??? ????? ????????? ?????

  6. KELLY on July 2nd, 2010 7:08 pm


    Pillspot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. Low price drugs. Buy drugs online

    Buy:Soma.Zithromax.Viagra Professional.Tramadol.Cialis Professional.Cialis Super Active+.Viagra.VPXL.Maxaman.Cialis Soft Tabs.Cialis.Viagra Soft Tabs.Viagra Super Force.Levitra.Viagra Super Active+.Propecia.Super Active ED Pack….

  7. WALLACE on July 21st, 2010 1:06 am


    Medicamentspot.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality drugs. Order drugs online

    Buy:Synthroid.Actos.Zyban.Valtrex.Nexium.Prevacid.Mega Hoodia.100% Pure Okinawan Coral Calcium.Lumigan.Accutane.Petcam (Metacam) Oral Suspension.Zovirax.Human Growth Hormone.Retin-A.Arimidex.Prednisolone….

  8. BOB on July 21st, 2010 7:17 am


    Medicamentspot.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription pills. Buy drugs online

    Buy:VPXL.Viagra.Propecia.Viagra Soft Tabs.Levitra.Maxaman.Viagra Professional.Viagra Super Force.Cialis Soft Tabs.Cialis Super Active+.Tramadol.Viagra Super Active+.Super Active ED Pack.Cialis.Zithromax.Cialis Professional.Soma….

  9. Padlock on August 30th, 2010 1:57 am
  10. GILBERT on September 7th, 2010 12:00 am


    CheapTabletsOnline.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality pills. Order pills online

    Buy:Arimidex.Retin-A.Accutane.Nexium.Prednisolone.Synthroid.Valtrex.Mega Hoodia.Human Growth Hormone.Zovirax.Actos.Zyban.Prevacid.Lumigan.Petcam (Metacam) Oral Suspension.100% Pure Okinawan Coral Calcium….

  11. diecast on September 15th, 2010 2:43 am

    diecast http://kud.qir.ii89.co : diecast…

    diecast…

  12. HUBERT on November 10th, 2010 11:30 pm


    NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

  13. CLINTON on December 19th, 2010 4:54 am

    ████████►BUY LEVITRA◀███████…

    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

  14. TIMOTHY on December 22nd, 2010 6:00 pm
  15. ANDREW on December 23rd, 2010 10:54 pm

    order cialis in canada online

    Buyno prescription…

  16. WADE on December 25th, 2010 3:43 am

    abilify and orgasm

    Buygeneric pills…

  17. ANTHONY on December 25th, 2010 3:20 pm

    rxlist@abilify.now” rel=”nofollow”>..

    Buydrugs without prescription…

  18. JIMMIE on December 28th, 2010 10:38 am

    Actos@official.site” rel=”nofollow”>..

    Buywithout prescription…

  19. DARRELL on December 29th, 2010 7:53 pm

    altace@medication.now” rel=”nofollow”>…

    Buygeneric meds…

  20. FERNANDO on December 30th, 2010 12:40 am

    Amoxicillin@official.site” rel=”nofollow”>…

    Buyno prescription…

  21. MARK on December 30th, 2010 5:28 pm

    tylenol zyrtec recall

    Buyno prescription…

  22. GUY on December 30th, 2010 10:00 pm

    avodart@in.usa” rel=”nofollow”>.

    Buyno prescription…

  23. GREGORY on December 31st, 2010 1:24 pm

    Azor@official.site” rel=”nofollow”>…

    Buygeneric pills…

  24. ALBERTO on January 2nd, 2011 4:51 am

    Crestor@official.site” rel=”nofollow”>.

    Buywithout prescription…

  25. CARLTON on January 3rd, 2011 11:59 pm

    abilify@vs.risperidone.dosage” rel=”nofollow”>.

    Buygeneric drugs…

  26. ENRIQUE on January 4th, 2011 8:08 pm

    generic@Cialis.now” rel=”nofollow”>.

    Buynow…

  27. KIRK on January 5th, 2011 9:39 am

    buy@viagra.in.london.england” rel=”nofollow”>…

    Buygeneric drugs…

  28. ALVIN on January 6th, 2011 5:58 am

    < a href=”http://my.gardenguides.com/members/buy-Tramadol? buy@Tramadol.now

    Buyno prescription…

  29. SERGIO on January 8th, 2011 5:57 pm

    dicyclomine@and.imodium” rel=”nofollow”>…

    Buygeneric drugs…

  30. DARRYL on January 21st, 2011 9:28 am

    depakote@parkinsonism.now” rel=”nofollow”>.

    Buyit now…

  31. CURTIS on January 21st, 2011 8:51 pm

    depakote@classification.now” rel=”nofollow”>..

    Buygeneric drugs…

  32. MATTHEW on February 4th, 2011 6:26 pm
  33. ANGEL on February 6th, 2011 11:51 am
  34. COREY on February 6th, 2011 12:06 pm

    diovan

    Buyit now…

  35. ERIK on February 6th, 2011 4:51 pm

    zoloft sid effects

    Buyit now…

  36. MAX on February 6th, 2011 7:32 pm

    cats zanaflex

    Buydrugs without prescription…

  37. KENNETH on February 6th, 2011 11:45 pm

    Zaditor

    Buydrugs without prescription…

  38. REX on February 7th, 2011 12:35 am

    Zoloft

    Buygeneric drugs…

  39. MAURICE on February 7th, 2011 8:27 am

    asperger zoloft 100

    Buydrugs without prescription…

  40. RUSSELL on March 3rd, 2011 8:54 am

    Zofran

    Buygeneric pills…

  41. TROY on March 4th, 2011 12:13 am

    Zyrtec

    Buyit now…

  42. CURTIS on March 4th, 2011 1:42 pm

    Zoloft

    Buynow it…

  43. DOUGLAS on March 5th, 2011 7:02 am

    zyprexa relprevv j-code

    Buygeneric drugs…

  44. DONNIE on March 6th, 2011 12:58 pm

    purim wiki

    Buydrugs without prescription…

  45. CHRISTIAN on March 7th, 2011 3:02 am

    Orlistat

    Buyit now…

  46. LUTHER on March 8th, 2011 11:57 am

    risperdal m-tab

    Buygeneric drugs…

  47. HUBERT on March 8th, 2011 12:13 pm

    Prozac

    Buyno prescription…

  48. CLINTON on March 8th, 2011 7:57 pm

    Purim

    Buyno prescription…

  49. JEFF on March 9th, 2011 1:44 pm

    Zyprexa

    Buynow it…

  50. JULIO on March 9th, 2011 3:04 pm
  51. CHRIS on March 10th, 2011 6:10 pm

    Rogaine

    Buygeneric meds…

  52. BRIAN on March 29th, 2011 12:15 am

    Tylenol@Tylenol.Tylenol” rel=”nofollow”>…

    Buygeneric meds…

  53. JARED on March 29th, 2011 1:57 am

    Topamax@Topamax.Topamax” rel=”nofollow”>.

    Buyit now…

  54. DANIEL on March 29th, 2011 5:31 am

    Purim@Purim.Purim” rel=”nofollow”>…

    Buyno prescription…

  55. EDDIE on March 29th, 2011 8:59 am

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>..

    Buynow it…

  56. MANUEL on March 29th, 2011 10:50 pm

    Slimfast@Slimfast.Slimfast” rel=”nofollow”>..

    Buygeneric drugs…

  57. LOUIS on March 30th, 2011 10:09 pm

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>.

    Buyit now…

  58. LEON on March 30th, 2011 11:47 pm

    dermatologic vitamin e face cream

    Buygeneric drugs…

  59. GREGORY on March 31st, 2011 2:28 am

    Provera@Provera.Provera” rel=”nofollow”>.

    Buygeneric pills…

  60. MATTHEW on March 31st, 2011 2:47 am

    Crestor@Crestor.Crestor” rel=”nofollow”>…

    Buyno prescription…

  61. JULIO on March 31st, 2011 5:17 am

    Cozaar@Cozaar.Cozaar” rel=”nofollow”>.

    Buynow it…

  62. TREVOR on March 31st, 2011 9:05 am

    Prozac@Prozac.Prozac” rel=”nofollow”>.

    Buygeneric drugs…

  63. JOSHUA on March 31st, 2011 3:38 pm

    Cipro@Cipro.Cipro” rel=”nofollow”>..

    Buygeneric meds…

  64. MELVIN on April 1st, 2011 9:28 pm

    ..

    Buywithout prescription…

  65. SHAUN on April 2nd, 2011 12:10 am

    cms@coverage.of.pulmicort.respules.j7627” rel=”nofollow”>.

    Buygeneric pills…

  66. DENNIS on April 2nd, 2011 4:04 am

    dapple@hydrocortisone.cream” rel=”nofollow”>…

    Buyit now…

  67. SHAUN on April 3rd, 2011 4:04 am

    what@side.effects.does.abilify.cause” rel=”nofollow”>…

    Buygeneric meds…

  68. LLOYD on April 3rd, 2011 8:26 am

    .

    Buynow…

  69. KURT on April 3rd, 2011 12:49 pm

    buy@acai.berry.supplement” rel=”nofollow”>.

    Buyit now…

  70. WAYNE on April 3rd, 2011 3:09 pm

    accutane@and.ototoxicity” rel=”nofollow”>…

    Buyno prescription…

  71. JARED on April 4th, 2011 3:48 am

    can@cymbalta.cause.vaginal.itching.and.irritation” rel=”nofollow”>..

    Buydrugs without prescription…

  72. ANDREW on April 4th, 2011 6:58 am

    advair@side.effects” rel=”nofollow”>.

    Buyit now…

  73. JERRY on April 4th, 2011 10:59 am

    .

    Buyno prescription…

  74. ANTONIO on April 4th, 2011 2:31 pm

    aleve@active.ingredient” rel=”nofollow”>.

    Buygeneric meds…

  75. DENNIS on April 4th, 2011 2:41 pm

    dilantin@hypoglycemia.alcohol” rel=”nofollow”>…

    Buyit now…

  76. TROY on April 4th, 2011 8:16 pm

    long@term.prilosec.use” rel=”nofollow”>.

    Buygeneric drugs…

  77. MELVIN on April 5th, 2011 8:04 am

    Buydrugs without prescription…

  78. HARRY on April 5th, 2011 8:10 am

    .

    Buygeneric drugs…

  79. SALVADOR on April 5th, 2011 2:22 pm

    is@neem.safe.to.use.on.skin” rel=”nofollow”>…

    Buygeneric pills…

  80. REX on April 5th, 2011 4:48 pm

    coral@calcium.safety” rel=”nofollow”>.

    Buyit now…

  81. ROBERTO on April 5th, 2011 9:51 pm

    .

    Buynow…

  82. FRANKLIN on April 5th, 2011 11:24 pm

    how@long.before.extenze.works” rel=”nofollow”>.

    Buygeneric pills…

  83. THOMAS on April 6th, 2011 1:08 am

    abilify@and.olanzapine” rel=”nofollow”>.

    Buyit now…

  84. OLIVER on April 6th, 2011 3:02 am

    side@effects.of.dog.medication.famotidine.and.flagyl” rel=”nofollow”>…

    Buygeneric drugs…

  85. ANTONIO on April 6th, 2011 5:04 am

    pediatric@dosage.of.prednisolone” rel=”nofollow”>…

    Buyno prescription…

  86. EDDIE on April 6th, 2011 2:20 pm

    calories@and.nutrition.in.boost.nutritional.energy.drink” rel=”nofollow”>…

    Buywithout prescription…

  87. ERNESTO on April 7th, 2011 8:39 am

    Buygeneric drugs…

Leave a Reply