Comments not showing
-
Anybody?
thanks for the link. Being a bit code – illiterate, I’m not quite sure I understand you. I found the necessary page. this is the coding I am finding on it.
[Code moderated as per the Forum Rules. Please use the pastebin]
There’s more to it but where exactly am I supposed to add “comments_template & what does the true mean? am i supposed to be adding that as well?
http://codex.wordpress.org/Function_Reference/comments_template
you can simply ignore the
trueand usecomments_template();the code would ususally be added before the ‘endwhile’ of the loop.
(more details, if need be, after you have submittted the code in a pastebin)
sorry, what is the loop you are referring to? and where do I find this pastebin?
Thanks,
Irvingloop – see for instance here:
http://codex.wordpress.org/The_Loop_in_Actionpastebin -> http://wordpress.pastebin.com/
How do i use the pastebin while replying to a message?
click on the pastebin link – this will open the pastebin with an area to paste your code into;
paste your code;
then click submit further down on the page;
and copy the address link from the browser bar – something like http://wo4rdpress.pastebin.com/EshyOpmhpost this link here with your question or suggestion
OK, thanks for your help. Let’s see if I can get this straight. I am attaching here my entire page code for index.php If you can tell me what to put & where on the code to put it I’d really appreciate it.
http://wordpress.pastebin.com/VtNzKN7k
Thanks,
Irvingi would add the code in here:
<p><a href="<?php the_permalink(); ?>#respond"><?php _e("Leave A Comment"); ?></a></p> </div> </div> </div> <?php global $withcomments; $withcomments = true; comments_template(); ?> </div> <?php endwhile; else: ?>hope you can identify the area, and where the new stuff was added;
the full index.php file is here: http://wordpress.pastebin.com/6kiYv6R2
Thank you, that was a very big help. Only problem with it now is that it’s showing EVERYTHING. the comments plus the option to leave a comment. Let’s say I would want it to only show 5 comments, (show the # of comments in total) & in order to leave a comment you just have to click on the leave a comment link which would open this box, not that you should have to go into a separate page. Am I making any sense?
Let’s say I would want it to only show 5 comments, (show the # of comments in total) & in order to leave a comment you just have to click on the leave a comment link which would open this box, not that you should have to go into a separate page.
i totally understand what you would like to achieve;
imho, this would involve editing comments.php of the theme, and some ajax coding – which is unfortunately not my area of knowledge.
to get fresh attention, you could consider to start a new thread with matching tags and a corresponding title.
good luck with the new project π
thanks for your help. I greatly appreciate it.
How about if I just want it to show the # of comments & then you would have to click on the “leave a comment link” in order to read & write a comment? Sorry for making you crazy
The topic ‘Comments not showing’ is closed to new replies.
(@irvingo)
15 years, 6 months ago
How do I get my comments to show under my post w/out clicking into the post?
Thanks,
Irving