How to add comments to Wordpress homepage
So, I use Wordpress. I don’t like Wordpress at all, but I used it at my last job so I got some experience with it and that means that it was easier to just use it and deal with the consequences later. I wouldn’t recommend it to another developer though, the codebase is truly hideous.
I recently wanted to add comments to my homepage. I only like to make changes to my template and not to change any Wordpress “core code”, since then I’ll have to make all those changes everytime I update Wordpress. I didn’t think this policy would be a problem for me this time since all I was trying to do was add the ‘comments template’ to the homepage and I thought that I should be able to just copy the appropriate line from my ’single.php’ into my ‘homepage.php’… Wrong! How any ‘non-technical’ person manages to use wordpress is beyond me…
Anyhow, I did some digging and found the problem. The function comments_template in comment-template.php has these lines:
return;
I’m not going to go into the reason why these lines are harmful but I’ll just say that my argument might be summed up as “hard coded configuration”. Anyway, these lines in homepage.php will get you what you want:
comments_template();
Or, if you want to be a smartass like myself, this will work too:
comments_template();
Cheers!
Tags: add comments, comments, how to, wordpress homepage
167 Responses to “How to add comments to Wordpress homepage”
February 4th, 2010 at 5:01 pm
You nailed it. Adding $withcomments = true;
worked for me. Thanks!
June 12th, 2011 at 8:58 pm
hello…
really good article. Ready to hear more next week,my blog http://talonmpgraham.blog.ca/2011/06/12/adressing-wedding-invites-envelopes-11302585/ Many Thanks….
June 13th, 2011 at 3:49 pm
hello…
really good article. Ready to hear more next week,my blog http://www.kamusta.ph/topic/talonmpgraham/102860 Many Thanks….
June 16th, 2011 at 2:25 am
really good article…
I have spent a bit of time going through your posts, more than I should have but I must say, its worth it! http://zuzu071.yesblog.ru/ many Thanks….
June 20th, 2011 at 3:41 pm
very helpful…
I preferred to thank you for this good article. http://qjdfl.blog.hr/ I by all odds liked every little bit of it…
June 21st, 2011 at 1:30 pm
Great…
You did a great job! http://delaine.blog.mugensite.net/2011/06/17/swimming-in-glamour/...
June 22nd, 2011 at 4:38 am
Great…
You did a great job! http://demetriusa.blogcindario.com/2011/06/00002-the-fifties-foods-and-fashion.html...
June 26th, 2011 at 2:10 am
quality post…
I have spent a bit of time going through your posts! http://www.blogslinger.com/?L=blogs.blog&article=59120 ,i had a good read….
June 27th, 2011 at 3:37 pm
Greate…
It’s such a great site! http://adampnatkinson.insanejournal.com/1133.html Great post, I just bookmarked it on Digg….
July 8th, 2011 at 5:26 am
buy@aloe.vera.gel” rel=”nofollow”>……
Need cheap generic VIAGRA?…
July 18th, 2011 at 11:28 am
buy@generic.LEVITRA” rel=”nofollow”>……
Need cheap generic LEVITRA?…
July 28th, 2011 at 10:24 am
Buy@Coral.Calcium.Online” rel=”nofollow”>……
Buygeneric pills…
July 29th, 2011 at 2:52 am
Get@Coral.Calcium.Online” rel=”nofollow”>..…
Buygeneric drugs…
July 29th, 2011 at 4:31 am
Order@Abana.Online” rel=”nofollow”>……
Buywithout prescription…
July 29th, 2011 at 5:40 am
Order@Discount.Abana” rel=”nofollow”>..…
Buygeneric pills…
July 29th, 2011 at 12:12 pm
Order@Discount.Abilify” rel=”nofollow”>..…
Buyno prescription…
July 29th, 2011 at 5:02 pm
Purchase@Abilify.Without.Prescription” rel=”nofollow”>..…
Buygeneric meds…
July 30th, 2011 at 3:58 am
Buy@Discount.Acai” rel=”nofollow”>..…
Buynow it…
July 30th, 2011 at 5:44 am
Order@Acai.Online” rel=”nofollow”>……
Buynow…
July 30th, 2011 at 7:25 am
Order@Cheap.Acai” rel=”nofollow”>……
Buynow it…
July 30th, 2011 at 10:54 am
Purchase@Acai.Online” rel=”nofollow”>……
Buynow…
July 30th, 2011 at 7:20 pm
Buy@Generic.Acai” rel=”nofollow”>..…
Buywithout prescription…
July 30th, 2011 at 10:15 pm
Buy@Generic.Acai.Without.Prescription” rel=”nofollow”>……
Buygeneric drugs…
July 31st, 2011 at 7:31 am
Cheap@Generic.Acai” rel=”nofollow”>..…
Buyit now…
July 31st, 2011 at 1:01 pm
Buy@Discount.Coral.Calcium” rel=”nofollow”>..…
Buywithout prescription…
July 31st, 2011 at 1:26 pm
Order@Coral.Calcium.Online” rel=”nofollow”>..…
Buyno prescription…
July 31st, 2011 at 2:56 pm
Purchase@Cheap.Coral.Calcium” rel=”nofollow”>.…
Buynow it…
July 31st, 2011 at 7:58 pm
Purchase@Discount.Abana” rel=”nofollow”>..…
Buynow it…
August 1st, 2011 at 7:58 pm
Buy@Acai.Online” rel=”nofollow”>.…
Buyit now…
August 2nd, 2011 at 3:39 am
Purchase@Cheap.Coral.Calcium” rel=”nofollow”>……
Buywithout prescription…
August 3rd, 2011 at 11:10 am
Buy@Acai.Online” rel=”nofollow”>..…
Buygeneric drugs…
August 3rd, 2011 at 11:38 am
Buy@Acai.Online” rel=”nofollow”>.…
Buywithout prescription…
August 3rd, 2011 at 1:13 pm
where@can.i.purchase.max.acai” rel=”nofollow”>..…
Buynow it…
August 3rd, 2011 at 2:29 pm
Buy@Discount.Acai” rel=”nofollow”>……
Buygeneric drugs…
August 3rd, 2011 at 5:39 pm
Order@Cheap.Acai” rel=”nofollow”>……
Buyit now…
August 3rd, 2011 at 6:27 pm
Order@Cheap.Acai” rel=”nofollow”>……
Buyit now…
August 4th, 2011 at 10:42 am
Buy@Acai.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs…
August 4th, 2011 at 12:29 pm
where@can.you.buy.acai.berry” rel=”nofollow”>..…
Buygeneric drugs…
August 4th, 2011 at 2:14 pm
Order@Generic.Acai” rel=”nofollow”>..…
Buydrugs without prescription…
August 5th, 2011 at 12:05 am
Buy@Discount.Energy.Boost” rel=”nofollow”>.…
Buynow it…
August 5th, 2011 at 4:41 am
Purchase@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric drugs…
August 5th, 2011 at 8:00 am
Cheap@Energy.Boost.Online” rel=”nofollow”>.…
Buynow it…
August 5th, 2011 at 9:12 am
Get@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric pills…
August 5th, 2011 at 10:21 am
Buy@Accupril.Online” rel=”nofollow”>.…
Buygeneric meds…
August 5th, 2011 at 8:32 pm
Cheap@Accupril.Online” rel=”nofollow”>.…
Buygeneric drugs…
August 5th, 2011 at 11:42 pm
Buy@Accutane.Online” rel=”nofollow”>.…
Buygeneric drugs…
August 6th, 2011 at 9:26 am
Get@Accutane.Online” rel=”nofollow”>.…
Buygeneric meds…
August 7th, 2011 at 5:44 am
Order@Aciphex.Online” rel=”nofollow”>.…
Buyno prescription…
August 8th, 2011 at 1:05 pm
Buy@Generic.Aciphex.20mg” rel=”nofollow”>.…
Buynow it…
August 10th, 2011 at 4:32 pm
Buy@Actonel.35mg” rel=”nofollow”>..…
Buygeneric drugs lzt…
August 10th, 2011 at 6:45 pm
Generic@Actonel.35mg.Without.Prescription” rel=”nofollow”>..…
Buygeneric pills zdg…
August 11th, 2011 at 2:01 am
Buy@Actos.Online” rel=”nofollow”>.…
Buygeneric drugs zfk…
August 11th, 2011 at 2:34 am
Buy@Cheap.Actos” rel=”nofollow”>..…
Buygeneric drugs krg…
August 11th, 2011 at 11:22 am
Buy@Generic.Actos” rel=”nofollow”>..…
Buygeneric drugs eet…
August 11th, 2011 at 11:35 pm
Buy@Generic.Actos.15mg.30mg” rel=”nofollow”>..…
Buygeneric meds qmo…
August 12th, 2011 at 10:49 am
Buy@Discount.Adalat” rel=”nofollow”>……
Buyit now oil…
August 12th, 2011 at 11:19 am
Order@Adalat.Online” rel=”nofollow”>..…
Buygeneric meds qhr…
August 12th, 2011 at 5:36 pm
Order@Coral.Calcium.Online” rel=”nofollow”>..…
Buynow it tly…
August 12th, 2011 at 7:15 pm
Purchase@Coral.Calcium.Online” rel=”nofollow”>.…
Buyno prescription luw…
August 13th, 2011 at 6:02 am
Order@Cheap.Abilify” rel=”nofollow”>……
Buywithout prescription xiu…
August 13th, 2011 at 3:29 pm
Cheap@Abilify.Without.Prescription” rel=”nofollow”>..…
Buywithout prescription dyo…
August 13th, 2011 at 4:31 pm
Buy@Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..…
Buynow it vhx…
August 13th, 2011 at 7:04 pm
Cheap@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>.…
Buywithout prescription yyn…
August 13th, 2011 at 9:21 pm
Abilify@5mg.10mg.15mg.20mg.30mg.Without.Prescription” rel=”nofollow”>……
Buygeneric meds svb…
August 13th, 2011 at 10:37 pm
Buy@Acai.Online” rel=”nofollow”>……
Buydrugs without prescription vrg…
August 13th, 2011 at 11:45 pm
Buy@Cheap.Acai” rel=”nofollow”>..…
Buyno prescription wkp…
August 14th, 2011 at 1:51 am
Order@Acai.Online” rel=”nofollow”>..…
Buyno prescription jui…
August 14th, 2011 at 6:17 am
Purchase@Cheap.Acai” rel=”nofollow”>..…
Buyno prescription tao…
August 14th, 2011 at 7:20 am
Purchase@Discount.Acai” rel=”nofollow”>……
Buydrugs without prescription jlg…
August 14th, 2011 at 8:33 am
Cheap@Acai.Online” rel=”nofollow”>……
Buyit now sge…
August 14th, 2011 at 1:07 pm
Buy@Generic.Acai.Without.Prescription” rel=”nofollow”>……
Buywithout prescription ccw…
August 15th, 2011 at 12:01 am
Purchase@Generic.Acai.500mg” rel=”nofollow”>.…
Buygeneric drugs itj…
August 15th, 2011 at 4:32 am
Acai@500mg.Without.Prescription” rel=”nofollow”>.…
Buynow it lmg…
August 15th, 2011 at 9:05 am
Order@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric drugs axm…
August 15th, 2011 at 1:32 pm
Purchase@Cheap.Energy.Boost” rel=”nofollow”>.…
Buyit now ojb…
August 17th, 2011 at 7:14 pm
Cheap@Generic.Accutane.10mg.20mg” rel=”nofollow”>……
Buynow it zdg…
August 17th, 2011 at 9:22 pm
Accutane@10mg.20mg.Without.Prescription” rel=”nofollow”>..…
Buygeneric drugs ajd…
August 18th, 2011 at 6:18 am
really…
Fat women and girls always worried because of their ugly shaped bodies. http://blog.sandiegotown.com/frdjkil/ , but they can not wear these outwears…
August 19th, 2011 at 12:35 am
Buy@Aciphex.20mg” rel=”nofollow”>.…
Buygeneric drugs mby…
August 19th, 2011 at 10:04 am
Buy@Discount.Acomplia” rel=”nofollow”>..…
Buydrugs without prescription faj…
August 20th, 2011 at 11:54 pm
Purchase@Discount.Acomplia” rel=”nofollow”>.…
Buydrugs without prescription tdg…
August 22nd, 2011 at 10:46 pm
Order@Cheap.Advair” rel=”nofollow”>……
Buygeneric drugs vbr…
August 23rd, 2011 at 8:07 am
Cheap@Advair.Online” rel=”nofollow”>.…
Buygeneric drugs nih…
August 23rd, 2011 at 4:07 pm
Order@Generic.Advair” rel=”nofollow”>..…
Buydrugs without prescription hak…
August 23rd, 2011 at 8:06 pm
Purchase@Advair.Without.Prescription” rel=”nofollow”>..…
Buyno prescription jwi…
August 24th, 2011 at 1:28 am
Buy@Advair.25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg” rel=”nofollow”>..< /blo…
Buygeneric meds dxy…
August 25th, 2011 at 3:30 pm
Purchase@Discount.Albenza” rel=”nofollow”>……
Buynow fjl…
August 25th, 2011 at 7:30 pm
Buy@Aldactone.Online” rel=”nofollow”>.…
Buygeneric drugs hwi…
August 25th, 2011 at 10:10 pm
Buy@Discount.Aldactone” rel=”nofollow”>.…
Buydrugs without prescription xab…
August 26th, 2011 at 1:54 pm
calcium@coral.buy” rel=”nofollow”>.…
Buydrugs without prescription…
August 27th, 2011 at 5:55 am
allopurinol@cheap.buy” rel=”nofollow”>..…
Buyit now…
August 27th, 2011 at 9:54 am
aloe@vera.juice.benefits.best” rel=”nofollow”>.…
Buygeneric meds…
August 27th, 2011 at 11:14 am
aloe@ferox.gel.buy” rel=”nofollow”>.…
Buynow it…
August 28th, 2011 at 4:35 am
abilify@does.it.work” rel=”nofollow”>……
Buygeneric meds…
September 1st, 2011 at 4:41 pm
very helpful…
I preferred to thank you for this good article. http://pcltld.blogage.de/ I by all odds liked every little bit of it…
September 22nd, 2011 at 1:52 pm
Download@pop.Rock” rel=”nofollow”>……
Search rock US Charts…
October 16th, 2011 at 8:59 pm
hiv research being conducted in usa…
Buy_generic pills…
October 17th, 2011 at 2:19 am
lung cancer survival rates…
Buy_generic meds…
October 17th, 2011 at 3:59 am
natural cures for atopic dermatitis eczema…
Buy_without prescription…
October 17th, 2011 at 5:39 am
intravenous fluid heart rate…
Buy_drugs without prescription…
October 17th, 2011 at 7:19 am
symptons of depression…
Buy_generic meds…
October 17th, 2011 at 8:59 am
does herpes rash come and go…
Buy_now it…
October 17th, 2011 at 10:39 am
warfarin zoloft…
Buy_drugs without prescription…
October 17th, 2011 at 5:19 pm
recent advances in cancer breast…
Buy_now…
October 18th, 2011 at 7:35 pm
advair and contraindications…
Buy_generic meds…
October 18th, 2011 at 9:15 pm
canine heat cycles…
Buy_without prescription…
October 19th, 2011 at 12:35 am
number of obese children in america…
Buy_generic meds…
October 19th, 2011 at 10:35 am
soft food diet ideas…
Buy_drugs without prescription…
October 19th, 2011 at 11:36 pm
apo amitriptyline…
Buy_generic pills…
October 20th, 2011 at 4:36 am
my rehab nursing clinical reflection…
Buy_drugs without prescription…
October 21st, 2011 at 6:08 am
tuna during pregnancy…
Buy_generic meds…
October 21st, 2011 at 7:47 am
conquer online hacking tools…
Buy_generic drugs…
October 21st, 2011 at 12:47 pm
symptoms of prescription drug abuse…
Buy_drugs without prescription…
October 21st, 2011 at 5:47 pm
effects of alcohol on amoxicillin…
Buy_generic meds…
October 22nd, 2011 at 3:47 am
protonix vs aciphex…
Buy_generic drugs…
October 22nd, 2011 at 4:11 pm
spironolactone reduces height…
Buy_no prescription…
October 22nd, 2011 at 7:30 pm
abdominal hernia photos…
Buy_generic pills…
October 24th, 2011 at 7:01 am
depression affects memory…
Buy_now it…
October 24th, 2011 at 3:48 pm
adult circumcisions and complications…
Buy_generic meds…
October 24th, 2011 at 7:08 pm
what age does menopause start…
Buy_it now…
October 24th, 2011 at 10:28 pm
scott hall american cancer society…
Buy_generic pills…
October 25th, 2011 at 6:49 am
gestational surrogacy…
Buy_now…
October 25th, 2011 at 10:08 am
combination food diet…
Buy_drugs without prescription…
October 25th, 2011 at 11:29 pm
buying prescription drugs in mexico…
Buy_now it…
October 26th, 2011 at 11:08 am
faye sick lung cancer…
Buy_drugs without prescription…
October 27th, 2011 at 5:28 am
how to embed pictures ms office…
Buy_drugs without prescription…
October 27th, 2011 at 10:28 am
osmotic behaviour of rbc in glucose…
Buy_generic pills…
October 28th, 2011 at 4:48 am
percy weston cancer cause cure book…
Buy_generic drugs…
October 28th, 2011 at 4:27 pm
blood pregnancy test jacksonville fl…
Buy_generic meds…
October 28th, 2011 at 10:24 pm
swollen ankles headache pregnancy…
Buy_generic drugs…
October 29th, 2011 at 12:04 am
singapore secure psychiatric forensic unit…
Buy_no prescription…
October 29th, 2011 at 10:01 am
mini insulin fridge…
Buy_generic drugs…
October 30th, 2011 at 1:03 am
azithromycin 250 mg tablets…
Buy_now it…
October 30th, 2011 at 5:07 am
avelox treats for bacteria…
Buy_drugs without prescription…
October 30th, 2011 at 11:44 am
drug treatment for bipolar disorder…
Buy_generic pills…
November 1st, 2011 at 1:45 pm
viagra prostate removal…
Buy_generic drugs…
November 1st, 2011 at 11:45 pm
questions about ortho tri cyclen…
Buy_generic drugs…
November 4th, 2011 at 9:13 am
birth control pill and lowered libido…
Buy_drugs without prescription…
November 4th, 2011 at 11:30 pm
exmoor pet care…
Buy_generic drugs…
November 5th, 2011 at 1:10 am
canine medi cam rx…
Buy_generic drugs…
November 5th, 2011 at 2:50 am
treatment of melanoma and vaginal cancer…
Buy_generic drugs…
November 5th, 2011 at 12:50 pm
build muscle mass diet…
Buy_drugs without prescription…
November 6th, 2011 at 3:30 pm
sphenoid sinusitis causes double vision…
Buy_it now…
November 7th, 2011 at 6:30 am
most effective antibiotics strep throat…
Buy_no prescription…
November 7th, 2011 at 2:50 pm
colon cancer systems…
Buy_now it…
November 8th, 2011 at 12:50 am
mycotic aortic abdominal aneurysm…
Buy_it now…
November 8th, 2011 at 9:44 pm
at home diet programs…
Buy_generic pills…
November 8th, 2011 at 11:24 pm
free diabetes logbooks to print…
Buy_generic drugs…
November 10th, 2011 at 7:04 am
hiv quality of life survey tools…
Buy_drugs without prescription…
November 11th, 2011 at 4:44 am
food and drug regulatory…
Buy_it now…
November 11th, 2011 at 7:44 pm
how can i lower my cholesterol…
Buy_generic drugs…
November 12th, 2011 at 5:44 am
kim kardashian weight gain…
Buy_now…
November 12th, 2011 at 5:24 pm
foods with triglycerides in them…
Buy_generic drugs…
November 13th, 2011 at 12:04 am
johns hopkins lung cancer…
Buy_drugs without prescription…
November 13th, 2011 at 5:04 am
autoimmune hepatitis glyconutrients…
Buy_generic meds…
November 13th, 2011 at 8:24 am
advisory group on hepatitis uk…
Buy_no prescription…
November 13th, 2011 at 10:04 am
keynesian economics great depression…
Buy_generic drugs…
November 15th, 2011 at 10:42 am
boost metabolism foods…
Buy_now…
November 15th, 2011 at 12:22 pm
flat warts and probiotics…
Buy_generic drugs…
November 16th, 2011 at 1:42 am
medicare drugs covered…
Buy_generic meds…
November 16th, 2011 at 5:02 am
state of arizona ontiveros drug…
Buy_now it…
November 16th, 2011 at 3:02 pm
substitute for diovan hct…
Buy_now…
November 16th, 2011 at 4:41 pm
lexapro versus prozac differences…
Buy_without prescription…
November 16th, 2011 at 9:42 pm
sample ncp for diabetes…
Buy_without prescription…
November 17th, 2011 at 4:22 am
what year was advil introduced…
Buy_now it…
December 6th, 2011 at 10:53 pm
Moncler Online…
[...]How to add comments to Wordpress homepage | Clay’s Blog[...]…
December 10th, 2011 at 3:49 pm
Download@alternative.Rock” rel=”nofollow”>.…
Search rock UK Charts…
Leave a Reply