Viewing 8 replies - 1 through 8 (of 8 total)
  • Check comments.php template file and it should be in there somewhere

    Thread Starter bbleaks

    (@bbleaks)

    Yea, I did. I edited the html link it had set as , but that did not change it 🙁

    Thread Starter bbleaks

    (@bbleaks)

    set as: <a href="%s"> lol

    You have edited the comments.php template and re-uploaded but the link is still reading the old URL?

    Try adding some dummy text around that link somewhere (e.g <h1>test</h1>) just to ensure your changes are actually being made.

    Also what is %s ?

    If still in doubt post comments.php if poss

    Thread Starter bbleaks

    (@bbleaks)

    I have a comments.php and a comments-template.php

    I have changed the url, but it still links to http://bbleaks.com/wp-login.php?redirect_to=

    Here is the snippet of code from the comments-template.php file, look for ‘You Must Be Logged In’:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter bbleaks

    (@bbleaks)

    Anyone else have an idea? Please help 🙂

    Here is the code:

    'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="http://www.bbleaks.com/login">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',

    Thread Starter bbleaks

    (@bbleaks)

    The above code is what I changed, but it doesn’t seem to be affecting the comments section. Please help!

    wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',

    This function outputs the normal login URL so you don’t want to use this, instead you need to manually add your link where ever it is appearing.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Comments login redirect’ is closed to new replies.