Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Can I show "wpDiscuz comments & comment form template of a post" in a custom page / php file?
P.S.= I tried to use comments_template();
and it's not working.
Hi @emreguler,
Please check the points mentioned in this doc:
https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/
@astghik , sorry, I forgot to mention that. I already checked that page. Let me tell you more details.
Everything is fine on single post page of that post type. But I want to show the comments of a post on different page. I did it with the codes below. Comments are showing but with default wordpress comments template instead of wpDiscuz...
global $post, $withcomments;
$post = get_post(7617);
$withcomments = 1;
if ( comments_open() && get_comments_number() ) {
comments_template();
}else{
_e('Henüz profilinize hiç yorum yapılmamış', 'egrandevu');
}
then you should use the is_load_wpdiscuz hook and return true for the custom post types.
An example can be found here: https://beta.wpdiscuz.com/docs/codex/filters/is_load_wpdiscuz/