Site logo

Archived topic

Ding comments to Custom Post types

9 replies · Started by Igor on September 19, 2020

Viewing posts 1–10 of 10

Hi, I've followed one of Tom's posts but my problem still exists. I have CPT (name: U izborniku) and I want comments on CPT and archives.
In elements I added hook Generate_after_content, I checked Execute php, under Display rules I set CPT post/archive. Php code I added:

<span class="comments-link">
<?php comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); ?>
</span>

When I go to CPT I still don't see comments. Did I miss something?
URL is: https://www.otvorenipecati.com/
CPT are menu above in black section.

Thanks for help...
Igor

Hi there,

Can you confirm that you've checked to execute PHP?

Hi, yes it is checked...

Igor

Hi there,

are comments enabled for those posts ?

Hi, thanks for your reply, the problem is I don't see option to enable comments. In quick edit, there is no checkbox like in a normal post.

Best,

Igor

Hi, thanks for your reply, the problem is I don’t see option to enable comments. In quick edit, there is no checkbox like in a normal post.

You set this on CPT UI.
https://share.getcloudapp.com/4gu9d8gD

Once you add the comment support on CPT, you can then enable the comments on the post by checking "Allow comments" on gutenberg sidebar's document tab.
https://share.getcloudapp.com/eDuBGKdK

Hi, yes this is enabled...

Your site seems to be behind a coming soon page. Can you share temp login details in the Private Information field so we can check it out?

Thank you Tom for your time, since I had to solve my problem very quickly, I found another solution and the customer is satisfied. So we will not waste our time with this.
Thanks again.

Igor

Glad you got it sorted :)

This archived topic is closed to new replies.