WordPress.org

Forums

WP-Property - WordPress Powered Real Estate and Property Management
Enable Comments on Screen Options (6 posts)

  1. luigitec
    Member
    Posted 2 years 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/

  2. jamin84
    Member
    Posted 2 years ago #

    I would also like to find out how to do this.

  3. jamin84
    Member
    Posted 2 years ago #

    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 :)

  4. jamin84
    Member
    Posted 2 years ago #

    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'
        );
  5. luigitec
    Member
    Posted 2 years ago #

    Nice, it worked perfectly.

    @jamin84 I appreciate much the help, you are the man!

  6. discopimp
    Member
    Posted 1 year ago #

    hello,

    which file do i make the last changes you indicated ?

    i cannot find:

    $args = array(
    'ID' => $post->ID,
    'status' => 'approve',
    'order' => 'ASC'
    );

    thx

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Property - WordPress Powered Real Estate and Property Management
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic