Posts: 33
Threads: 7
Joined: Jul 2020
mlb-2020 is the title of the article and unfortunately, post-slug did not work because the test comment I added to the mlb-2020 article is visible on other articles.
Posts: 2,894
Threads: 59
Joined: Jun 2010
That shouldn't be the case. I'd have to debug it because I'm not sure what's happening. If you can put it online somewhere and PM me the FTP details I'll take a look.
Have
you completed
the interview?
Posts: 2,894
Threads: 59
Joined: Jun 2010
Thanks for providing your FTP details. For security I'm going to delete the PM with the details now.
I had a look and this is what you had in the integration code:
PHP Code:
<?php
$cmtx_identifier = '$results["article"]->title';
$cmtx_reference = 'Comments Section';
The main problem with it was that '$results["article"]->title' wasn't being interpreted as code in PHP because it was wrapped in single quotes. That's why you had the same comments on every page. Also I think the blog title is better as the reference rather than the identifier. Firstly because it allows you to change your blog title without messing up the comments and secondly because your page references will now be meaningful. For the identifier I've put your articleID because that's what is unique about each page and will always stay consistent no matter what content you change on your page. This is what I've changed it to:
PHP Code:
<?php
$cmtx_identifier = $_GET['articleId'];
$cmtx_reference = $results['article']->title;