![]() |
Hi
I would like people to be able to leave comments on this page http://dougalmacdonald.com/?page_id=912 with most recent comment displayed at the top.
Is this possible....?
Thanks in advance and warm regards.
Sarah
Solution - 1Yes, its posible. and this is an answer on your question. How to enable its quite different question! =) Solution - 2The call to the comments template is not put in the loop; it's put immediately after the loop. Look in the WP default theme page.php template for an example of where the call to the comments theme goes. To add comments to a specific page, open that page's template and add wherever you'd like the comments and comment form to appear. Then, check your theme folder for your comments.php template file. If you don't have one, check the default theme folder for an example. To list comments with the most recent ones first, open the comments.php file and look for this section: Change: to: And in the Dashboard, open the page in question and check "Allow Comments" under the "Discussion" metabox. You can also check out the Codex page on listing comments here: http://codex.wordpress.org/Template_Tags/wp_list_comments Solution - 3Yes it's possible to have comments on a page. Wherever you want the comment form (as usual in the loop): Page.php Add this for Recent Comments: Solution - 4Hello, Add this before your loop ( ENDWHILE ), I gave you an example. |
Recent Comments
comment_post_ID);?> comment_ID);?> comment_ID,ARRAY_A);?>- < ?php echo($comment->comment_author)?> on < ?php echo $comm_title?>