WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello everyone I am creating a theme dedicates to hotels display and booking in which I have created a custom post type 'Hotels' so now I want a mechanism to book the hotel rooms and a "book now" button in the hotel page to book the room which will send a request to the admin and also send an acknowledgement mail to the user for this I thought if I make some changes in comments form for post type hotel and display the comments form throw a comments_popup_link(); and add some more meta fields throw add_comments_meta();

But the question is how can I display the different custom comments(book now) requests in the admin panel with all the comments meta information related to the comments. Is it possible or do I have to think of some different mechanism to do what I'm expecting.

share|improve this question
up vote 0 down vote accepted

This is possible : you can fetch the comments form the database in the admin side in the same way you would do it on the client side with get_comments.

Now the question is : where exactly, in the admin side, do you want to display you custom comments ? You can for example create a meta box in the Hotel edit page. Or you can create a single custom admin page where all the booking will be listed.

share|improve this answer
Thanks Fabien but all of the comments are listed in the comments option with the approve, edit, delete functionality so is there any way I can display those comments for the custom posts(hotel ) in the meta box under costum post type (hotel) option with same functionality to edit, delete, approve – Abhimanue Tamang Oct 20 '12 at 6:21
You can do that, but not very easily. Open the wp-admin/edit-comments.php file and study the PHP code : you should find all what you need. – Fabien Quatravaux Oct 21 '12 at 20:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.