Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:14:17+00:00 2026-05-26T06:14:17+00:00

I am using wordpress and I’ve created a new table in the wordpress database.

  • 0

I am using wordpress and I’ve created a new table in the wordpress database.

I have created a new table which contains a userid field

My question is, is there anyway to make a copy save/sync wordpress’s user table user_login field into my new table so that every time there’s a new user my table is also populated with the user_login field?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:14:18+00:00Added an answer on May 26, 2026 at 6:14 am

    Well, to make a one time copy of the user_login field into your new table, you would do this:

    insert into new_table (user_login)
    select user_login from UsersTableNameHere
    

    Warning: adjust script accordingly with table and column names, since and do not know WordPress DB structure, neither your new table’s structure. Also, make sure your user_login column has the same (or compatible) data type as user_login in the original users table

    Now, if you want to replicate the user_login automatically whenever a new user is created, you should look into creating a trigger.

    Read those on how to create a trigger:

    • http://dev.mysql.com/doc/refman/5.0/en/triggers.html
    • http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using wordpress and I've created a new table in the wordpress database.
I have a table like this (using wordpress) +---------+----------+------------+ | meta_id | meta_key |
Using Wordpress I have created a multiple select box so that users can select
I am using Wordpress 3.0.2, i have to create 2 new roles: 1) User
I created a site using wordpress. I installed the 'starkers' theme and modified it.
I just started out using wordpress as a CMS. On the site I have
What is the best method, if there is one, of using Wordpress as a
Anybody using wordpress as an article directory? I don't have time to customize it,
so I'm using Wordpress, which loads the theme and possibly many plugins which can
I'm using WordPress to make my users make their own website/blog. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.