Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created April 7, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidperezgar/8b07e739b56b08e915581ae2e57d5766 to your computer and use it in GitHub Desktop.
Save davidperezgar/8b07e739b56b08e915581ae2e57d5766 to your computer and use it in GitHub Desktop.
GeneratePress | Add Comments in custom post type
/**
Appearance > Elements > Add new Hook
Hook: after_content
Execute PHP: active
Display rules: All singular of CPT
From: https://generatepress.com/forums/topic/applying-blog-archive-and-single-post-settings-to-custom-type-post/#post-903150
**/
<span class="comments-link">
<?php comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); ?>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment