• Resolved larsbachmann

    (@larsbachmann)


    Hi WordPress fans

    I’m trying to tweak WordPress, to use it as a directory using the comments.

    But my problem is that i want to change the URL to page-1, page-2 instead of comment-page-1, comment-page-2 etc.

    Can anyone tell me how to fix this?
    Thanks

    Lars Bachmann

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s not advisable, but if you do a core hack, you can search in all files, where “comment-page” is mentioned. The search can easily be done with grep, like: grep -ir “comment-page” *

    A plugin would be the right way to do it … sorry, I’m not a plugin developer

    … for a hammer, everything is a nail

    I am a developer, so I would be happy to create a plugin, I just have no clue (I searched) which functionality WordPress provides for me to manipulate the URL and change “comment-page”.

    Thread Starter larsbachmann

    (@larsbachmann)

    Problem solved ??

    With a little help from hhbertelsen i manage to find 4 files in the wp-includes folder.

    wp-includes/comment-template.php
    wp-includes/rewrite.php
    wp-includes/link-template.php
    wp-includes/canonical.php

    I changes comment-page to something else in these 4 files, and it works.

    Thx
    Lars Bachmann
    https://www.larsbachmann.dk

    Problem solved? By hacking core-files.. Okay, I can see I need to put this on my to-do list to research a solution. If anyone has one already, that does not involve hacking the core-files, please.. don’t hold back ??

    Lars Koudal
    https://www.mywordpress.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing comment-page-#’ is closed to new replies.