would like to add Disqus comments to my blog list, it seems to work on the first post in the loop. by is not appearing in the rest of the posts in the loop.
I have been reading some suggestions on the forum. what I have already done:
1. I have added this code to the functions.php
add_shortcode('wpv-post-comments', 'my_post_comments');
function my_post_comments() {
ob_start();
comments_template();
$data = ob_get_clean();
return $data;
}
2. I have also added this code to the comments.php (I am not sure if I have inserted it in right)
wp_list_comments( array( 'callback' => 'custom_comment', 'type' => 'comment', 'avatar_size' => 40 ), get_comments( array( 'post_id' => get_the_ID() ) ) );
please have look here:
hidden link
gr.
Madir
Hi, I'm not a Disqus expert so I'm not really the best source of information about how to integrate their software in PHP. However, another client had an issue that involved Disqus recently and posted here in the forums: https://toolset.com/forums/topic/insert-wordpress-build-in-comment-feature-in-content-template/#post-484856
They did not mention any required changes in PHP, they simply inserted a Disqus shortcode into their Content Template:
There is also the Disqus universal embed code:
hidden link
Will either of these approaches work for your site?
I tried your suggestions. but none of them worked.
At this moment I am using facebook comments plugin instead.
Is there a way to make my own comments system?
Gr.Madir
In theory you could make your own comments system using CRED, a parent/child relationship between post types, and Views to display lists of comments.
meanwhile I have tried to use cred to make comments system, I have succeeded to make this as you can see here,
hidden link
I am struggling, to make sure that the comment being added via cred form belongs to the post automatically and auto refreshed? now I have a form field where user still have to choose the post.
I would also like to add a way to ask people to login to comment and if possible add edit and delete possibly. please do help.
Gr. Madir
Hi, our support policy states we address one issue per ticket, so please create new tickets for each new question. This helps us keep the forum organized, and helps other users find the answers to similar questions.
For example, if you search the forum for "automatically assign parent post in cred", you will find this ticket that solves a similar problem: https://toolset.com/forums/topic/automatically-assigning-parent-post-and-users-name/
Login restrictions can be managed with our Access plugin. More info about that here:
https://toolset.com/documentation/user-guides/#using-access
If you have more specific questions, feel free to open new tickets. Thanks!