enable jetpack comments on CPT
-
Greetings — I’m building a Jetpack-based site and would like to enable comments on a CPT I’m designing. Jetpack comments display fine on regular pages/posts, but not on the CPT. At this point I’m hoping to diagnose whether this is a Jetpack issue, an issue with my theme (Genesis framework), or an issue with my CPT plugins (Toolset Types/Views).
Re. Genesis theme: I’m following the advice here to enable comments on a Genesis theme-based CPT, specifically adding this functions.php snippet:
add_post_type_support( 'cpt-name-here', 'comments' );
It does not, however, seem to make a difference. (Since my CPT is defined via Toolset Types, I’ve tried both wpcf-cpt-name and cpt-name, as I believe they add a prefix to their CPTs.) So, I’m not sure the problem lies with the Genesis theme. (Side note: years ago I experienced occasional problems with hyphens in CPT names…still relevant?)
Re. Toolset: Toolset Types allows one to enable comments when defining the CPT, which I’ve done. I’ve also temporarily disabled the Toolset content template I’m using to display the CPT, to eliminate that possibility (& thus display with standard single.php-ish template)…no improvement.
So, I’m down to Jetpack (we have latest v. plugin) possibly being an issue. Again, Jetpack works fine on all standard posts/pages. Can you think of any reason why Jetpack would not play well with supporting comments on my CPT?
Regards,
Jim P.
- The topic ‘enable jetpack comments on CPT’ is closed to new replies.