Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GeneratePress | Add Comments in custom post type
Appearance > Elements > Add new Hook
Hook: after_content
Execute PHP: active
Display rules: All singular of CPT
<span class="comments-link">
<?php comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment