Viewing 1 replies (of 1 total)
  • Thread Starter ben81

    (@ben81)

    Sorry, hit the return key before entering the text … so, here it is:
    I’m trying to link to a different page than the standard index.php when clicking on comments. The problem is, that the comments_link function doesn’t seem to accept die $file argument. No matter what file location I pass, the location still remains the same. Is this a bug? When I look at the function, there seems to be no use for the $file argument…

    function comments_link($file='', $echo=true) {
    global $id, $pagenow;
    if ($file == '') $file = $pagenow;
    if ($file == '/') $file = '';
    if (!$echo) return get_permalink() . '#comments';
    else echo get_permalink() . '#comments';
    }

    Can anyone help me on this?

Viewing 1 replies (of 1 total)

The topic ‘comments_link does not accept $file argument’ is closed to new replies.