• Resolved sonali2308

    (@sonali2308)


    Hello…

    I have created two authors. Due to some reason I want to change their User ID. Is there any way/plugin/solution to change it.

    user_id=2
    user_id=42

    Please help…

    Thanks
    Sonali

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    There’s probably a (dangerous, not a good idea, really step away from the line!) way to do it in the mysql database but why would the ID number matter? The login name won’t change either way.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It would mess up

    1) All posts and comments attributed to that user
    2) The numbering schema used by WP for the next new user

    Thread Starter sonali2308

    (@sonali2308)

    Thanks for the solutions.

    Actually I need to give the link as per our Employee ID to Author

    e.g. I need to give link (65252.html) to user_id=2 instead of 2.html

    I am using below tag: <?php the_author_ID()?>

    Is it possible by using if-else condition.

    Please help…

    Thanks,
    Sonali

    Thread Starter sonali2308

    (@sonali2308)

    Hey Thanks all…

    I got the solution.
    I have added direct URL/Link in the profile of User by Dashboard and then I have added below code on where you want author name and URL/link for the same.

    <a href="#">','', 'width=814, height=582, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false"><?php the_author(); ?></a>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code has been permanently damaged/corrupted by the forum’s parser.]

    Thread Starter sonali2308

    (@sonali2308)

    I have added php the_author_url function which is not showing in above post

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit User ID’ is closed to new replies.