Created
April 7, 2020 14:41
-
-
Save davidperezgar/8b07e739b56b08e915581ae2e57d5766 to your computer and use it in GitHub Desktop.
GeneratePress | Add Comments in custom post type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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