I would also like to find out how to do this.
Ok, figured out 90% of it.
Open “class_functions.php” in the wp-property folder. Ln 278, change
'supports' => array('title','editor', 'thumbnail'),
to
'supports' => array('title','editor', 'thumbnail', 'comments'),
Then in admin, allow comments on each property page (Discussion section under General Information).
Open your “property.php” file in your theme (or copy the one from the plugin and copy it to your theme folder).
Add
<?php comments_template(); ?>
Where you want your form and comments.
10% problem is I’m getting all the comments, not just the ones for the individual properties. But that should get you started 🙂
Fixed.
I was using Twenty Twelve comments template and they incorrectly setup the $args.
Change
$args = array(
'ID' => $post->ID,
'status' => 'approve',
'order' => 'ASC'
);
to
$args = array(
'post_id' => $post->ID,
'status' => 'approve',
'order' => 'ASC'
);
Nice, it worked perfectly.
@jamin84 I appreciate much the help, you are the man!
hello,
which file do i make the last changes you indicated ?
i cannot find:
$args = array(
‘ID’ => $post->ID,
‘status’ => ‘approve’,
‘order’ => ‘ASC’
);
thx
(@luigitec)
13 years, 1 month ago
Hi,
I would like to know if is it possible to enable comments on each property page? (e.g. Disqus comments) from the Screen Options tab just like in pages/entries or by enabling it as a default option.
Thanks,
-Luis
http://wordpress.org/extend/plugins/wp-property/