Support » Themes and Templates » Chage #comment-XX into #anything-XX

  • I managed to change the ID’s on comments that start with “#comment-XX” but the only part I cannot figure out is how to tell WordPress to redirect to this customized ID upon comment addition. It seems to still go to the #comment-XX ID’s.

    Anyone interested in customizing WordPress that deep?


Viewing 2 replies - 1 through 2 (of 2 total)
  • I grepped the wordpress files and folders for “#comment-” and found 9 occurrences, including

     * get_comment_link() - Retrieve the link to the current comment
     * @since 1.5
     * @uses $comment
     * @return string The permalink to the current comment
    function get_comment_link() {
    	global $comment;
    	return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;

    in comment-template.php. Go change all of them, if you want.

    If this helps you out, I invite you to check out my profile page.

    Thanks for your response.

    I actually found that one myself and changed it. But there must be something else in the core files. Oh well, when I find it I’ll post back here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Chage #comment-XX into #anything-XX’ is closed to new replies.