wpexplorer

Classy - Comment Support For Staff Pages

Sep 1st, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. a. Open single-staff.php and add the following right after line 102
  2.  
  3.  
  4. <?php comments_template(); ?>  
  5.  
  6.  
  7. * So the full code would look like this:
  8.  
  9.  
  10. <div  class="grid_17 alpha omega">
  11.     <h2><?php _e('About Me') ?></h2>
  12.     <?php the_content(); ?>
  13.      <?php comments_template(); ?>  
  14. </div>
  15.  
  16.  
  17. * This will call the comment template on the staff page.
  18.  
  19. b. Now open functions.php and change line 248:
  20.  
  21. * From this:
  22.  
  23.  
  24. 'supports' => array('title','editor','thumbnail'),
  25.  
  26.  
  27. * To This:
  28.  
  29.  
  30. 'supports' => array('title','editor','thumbnail','comments'),
  31.  
  32.  
  33. * This will allow comments for the custom post type "Staff"
Advertisement
Add Comment
Please, Sign In to add comment