Skip to content

Instantly share code, notes, and snippets.

Embed
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
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