The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

[Solved] Missing Comment

8 Posts
2 Users
1 Reactions
666 Views
Posts: 7
Topic starter
(@callcallyummy)
Active Member
Joined: 4 years ago

Hi:

I have followed the below tutorial page to setup my website, and most of the page work.

https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/

Unfortunately, one of the page does not work.

The page is as below.

https://menugarage.com/%e9%a6%96%e9%a0%81-2/%e5%8f%b0%e5%8d%97%e7%b1%b3%e7%b3%95/

It fails even if I add shortcode [wpdiscuz_comments].

There are key words "wpDiscuz" in the page of HTML Page Source Viewer.

What happen to this page?

Thanks.

7 Replies
Asti
Posts: 7618
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@callcallyummy,

Please leave some feedback (with screenshots) for each point mentioned in this doc:  https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/

Posts: 7
Topic starter
(@callcallyummy)
Active Member
Joined: 4 years ago

Thanks for your reply.

The following step is how I check missing-comment-form with my website.

Fixing Tip 1:

There is no other comment plugin like Disqus and Jetpack in  my website.

Fixing Tip 2:

The below is my setting in Default Form.

Fixing Tip 2 1
Fixing Tip 2 2

Fixing Tip 3:

The below is my setting in Discussions.

Fixing Tip 3

Fixing Tip 4:

I had enable the "Allow Comments" in page setting.

Fixing Tip 4

I have no idea where is the "Discussions" setting.

Fixing Tip 4 2

Fixing Tip 5:

I have check the "comment" with the page setting. 

Fixing Tip 5

The "開放留言" correspond to "comment" in page setting. 

I have added the function add_post_type_support() in functions.php.

Fixing Tip 5 2

 

The following page does not show comment.

https://menugarage.com/%e9%a6%96%e9%a0%81-2/%e5%8f%b0%e5%8d%97%e7%b1%b3%e7%b3%95/

 

I tried to add the following code, it also didn't work.

add_action('init', 'wpdocs_custom_init');
 
/**
 * Add excerpt support to pages
 */
function wpdocs_custom_init() {
    add_post_type_support( 'page', 'excerpt' );
}

 

Is there a function for "Page"?

 

My other page has comment area.

https://menugarage.com/%e9%a6%96%e9%a0%81-2/%e4%b8%80%e7%a7%81%e9%ba%b5%e5%ae%85/

 

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7618

@callcallyummy,

Please try the following steps: 

1. Put this code in the active theme functions.php file:

function my_wpdiscuz_shortcode() {
$html = "";
if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
ob_start();
include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
$html = ob_get_clean();
}
return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

2. Use this shortcode in the page content: 

[wpdiscuz_comments]

Posts: 7
Topic starter
(@callcallyummy)
Active Member
Joined: 4 years ago

It works!

Thanks to reply efficiently and kindness.

Posts: 7
Topic starter
(@callcallyummy)
Active Member
Joined: 4 years ago

The below page does not work even if I add shortcode.

https://menugarage.com/%e9%a6%96%e9%a0%81-2/%e5%a4%a7%e6%99%82%e9%90%98%e5%a4%a9%e9%a6%99%e9%ba%b5/

I can see the wpdiscuz code in the page of HTML Page Source Viewer on the above page.

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7618

@callcallyummy,

It works fine. We've just checked it. Please watch this video: https://www.screencast.com/t/bYdwQVwndRVD

Posts: 7
Topic starter
(@callcallyummy)
Active Member
Joined: 4 years ago

All of my pages work.

Thanks.

Share: