Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Edit the page and look for the comments and trackbacks settings within. Turn the comments off. Click save. Done ??

    Have a beer,

    Instead of entering just <?php comments_template(); ?> in page.php, try to paste the code which I have added up below.

    <?php comments_template('exclude=enter the page id here'); ?>

    Thanks

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeah, but they you have to update that every time you want to exclude a new page. By turning off comments per page, you get more flexibility. Easier to change your mind later, too ??

    @ipstenu,

    You are absolutely right!

    Thread Starter parfumio

    (@parfumio)

    Thanks a lot to both of you.
    I’ve implemented these suggestions yesterday and they seem to work but, oddly enough, only on some of the pages (?!?).

    For example, page https://www.parfumio.ro/oferta-speciala/
    The ID is 254.
    I included the ‘exclude’ comand in the code like this
    <?php comments_template('exclude=254,344,642,970,1059,2545,3261'); ?>
    I also unchecked “allow comments” from the page admin.
    Well, it doesn’t work! That page still shows the old comments and allows new ones… What could it be?

    On the othe hand, my main page (https://www.parfumio.ro/) has the ID 2545 and the comments nicely disappeared… Like I said, very odd..

    2.
    I have another question, please..
    When a comment is posted (to the pages where I allow that) I want the IP of the commenter to be shown. What do I have to do? Do you have any idea?

    @parfumio, Publishing IP address on blogs sounds like Spam. I suggest you not to do it.

    Thread Starter parfumio

    (@parfumio)

    Thejas, thanks for your comment, I thought so too.
    But the comments of my clients would bring more credibility to my business and the problem is that some people think that I posted those comment myself. That’s why I thought to showing the IPs of the commenters.
    On the other hand I think almost everyone knows that the IP is public over the internet. So why should it be considered spam?

    Thread Starter parfumio

    (@parfumio)

    What about the other issue? Why do the comments still show in some pages even if I disabled them? Do you have any idea what I shoud do?

    Hey If you wanna add comments in index.php, you must add the code in index.php file. If you add the code in page.php file, how comments will appear in index.php (ie, your site homepage).

    Thanks

    Thread Starter parfumio

    (@parfumio)

    Hi

    I tried to understand your answer but I guess I’m missing something..
    I still don’t know what should I do in order to hide the comments from certain pages.

    You suggested to add <?php comments_template('exclude=enter the page id here'); ?> and so I did.
    Let’s take an example:
    The page https://www.parfumio.ro/contact/ (ID=344) is ok, the comments are closed and the ones added before are not shown.
    But the page https://www.parfumio.ro/oferta-speciala/ (ID=254) still shows comments and allows new ones.
    Both ID 254 and 344 are excluded as you told me.

    Why is that and what should I do?

    I tried to add <?php comments_template('exclude=enter the page id here'); ?> in index.php too but it didn’t work. Probably I didn’t add it where I was supposed to add it..

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘comments in pages’ is closed to new replies.