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/
Β
Β