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”
Leave a Reply
He asked me if I could help.
If you are an expert in php programming this would […….
? ?????????, ??, ??-?????, ?? ?????????? ??????. ??????? ??????? ???. ?????? ??? ? PM, ?????????….
??????????)))…
???????????? ?????? ?????? The other day a friend of mine started a new blog called Transformation of the Suns…..
? ?????????, ????? ?? ???? ??????, ?? ??????, ??? ?? ??????? ?????????? ???????….
???????? ??????????? He asked me if I could help.
If you are an expert in php programming this would […….
??????? ????????? ????? ?????…
????????? ?????? He asked me if I could help.
If you are an expert in php programming this would […….
esrip-326…
????? ??????? ???? ?? ?? ?????? http://www.vn7.ru/, ??????? ??? ????? ????????? ?????
…
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….
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….
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….
Padlock http://rpushqkk.04FORDPARTS.US/tag/Padlock+Button+push/ : Padlock…
Button…
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….
diecast http://kud.qir.ii89.co : diecast…
diecast…
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…
████████►BUY LEVITRA◀███████…
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…
dosage of amoxicillin for respiratory disorder…
Buygeneric drugs…
order cialis in canada online…
Buyno prescription…
abilify and orgasm…
Buygeneric pills…
rxlist@abilify.now” rel=”nofollow”>..…
Buydrugs without prescription…
Actos@official.site” rel=”nofollow”>..…
Buywithout prescription…
altace@medication.now” rel=”nofollow”>……
Buygeneric meds…
Amoxicillin@official.site” rel=”nofollow”>……
Buyno prescription…
tylenol zyrtec recall…
Buyno prescription…
avodart@in.usa” rel=”nofollow”>.…
Buyno prescription…
Azor@official.site” rel=”nofollow”>……
Buygeneric pills…
Crestor@official.site” rel=”nofollow”>.…
Buywithout prescription…
abilify@vs.risperidone.dosage” rel=”nofollow”>.…
Buygeneric drugs…
generic@Cialis.now” rel=”nofollow”>.…
Buynow…
buy@viagra.in.london.england” rel=”nofollow”>……
Buygeneric drugs…
< a href=”http://my.gardenguides.com/members/buy-Tramadol? buy@Tramadol.now…
Buyno prescription…
dicyclomine@and.imodium” rel=”nofollow”>……
Buygeneric drugs…
depakote@parkinsonism.now” rel=”nofollow”>.…
Buyit now…
depakote@classification.now” rel=”nofollow”>..…
Buygeneric drugs…
what is the shelf life of zyrtec…
Buynow it…
what works better for afib than amiodarone…
Buygeneric drugs…
diovan…
Buyit now…
zoloft sid effects…
Buyit now…
cats zanaflex…
Buydrugs without prescription…
Zaditor…
Buydrugs without prescription…
Zoloft…
Buygeneric drugs…
asperger zoloft 100…
Buydrugs without prescription…
Zofran…
Buygeneric pills…
Zyrtec…
Buyit now…
Zoloft…
Buynow it…
zyprexa relprevv j-code…
Buygeneric drugs…
purim wiki…
Buydrugs without prescription…
Orlistat…
Buyit now…
risperdal m-tab…
Buygeneric drugs…
Prozac…
Buyno prescription…
Purim…
Buyno prescription…
Zyprexa…
Buynow it…
depo provera shot how young can you be to take it…
Buyno prescription…
Rogaine…
Buygeneric meds…
Tylenol@Tylenol.Tylenol” rel=”nofollow”>……
Buygeneric meds…
Topamax@Topamax.Topamax” rel=”nofollow”>.…
Buyit now…
Purim@Purim.Purim” rel=”nofollow”>……
Buyno prescription…
Synthroid@Synthroid.Synthroid” rel=”nofollow”>..…
Buynow it…
Slimfast@Slimfast.Slimfast” rel=”nofollow”>..…
Buygeneric drugs…
Synthroid@Synthroid.Synthroid” rel=”nofollow”>.…
Buyit now…
dermatologic vitamin e face cream…
Buygeneric drugs…
Provera@Provera.Provera” rel=”nofollow”>.…
Buygeneric pills…
Crestor@Crestor.Crestor” rel=”nofollow”>……
Buyno prescription…
Cozaar@Cozaar.Cozaar” rel=”nofollow”>.…
Buynow it…
Prozac@Prozac.Prozac” rel=”nofollow”>.…
Buygeneric drugs…
Cipro@Cipro.Cipro” rel=”nofollow”>..…
Buygeneric meds…
..…
Buywithout prescription…
cms@coverage.of.pulmicort.respules.j7627” rel=”nofollow”>.…
Buygeneric pills…
dapple@hydrocortisone.cream” rel=”nofollow”>……
Buyit now…
what@side.effects.does.abilify.cause” rel=”nofollow”>……
Buygeneric meds…
.…
Buynow…
buy@acai.berry.supplement” rel=”nofollow”>.…
Buyit now…
accutane@and.ototoxicity” rel=”nofollow”>……
Buyno prescription…
can@cymbalta.cause.vaginal.itching.and.irritation” rel=”nofollow”>..…
Buydrugs without prescription…
advair@side.effects” rel=”nofollow”>.…
Buyit now…
.…
Buyno prescription…
aleve@active.ingredient” rel=”nofollow”>.…
Buygeneric meds…
dilantin@hypoglycemia.alcohol” rel=”nofollow”>……
Buyit now…
long@term.prilosec.use” rel=”nofollow”>.…
Buygeneric drugs…
……
Buydrugs without prescription…
.…
Buygeneric drugs…
is@neem.safe.to.use.on.skin” rel=”nofollow”>……
Buygeneric pills…
coral@calcium.safety” rel=”nofollow”>.…
Buyit now…
.…
Buynow…
how@long.before.extenze.works” rel=”nofollow”>.…
Buygeneric pills…
abilify@and.olanzapine” rel=”nofollow”>.…
Buyit now…
side@effects.of.dog.medication.famotidine.and.flagyl” rel=”nofollow”>……
Buygeneric drugs…
pediatric@dosage.of.prednisolone” rel=”nofollow”>……
Buyno prescription…
calories@and.nutrition.in.boost.nutritional.energy.drink” rel=”nofollow”>……
Buywithout prescription…
……
Buygeneric drugs…