pods icon indicating copy to clipboard operation
pods copied to clipboard

Users option missing in the extend pod drop down menu

Open wreciak opened this issue 12 years ago • 2 comments

Hi I'm trying to extend my user profiles with pods but i don't have that option in the add pod > extend -> content type. screen shot 2014-03-08 at 15 38 40

I have pods and WP up to date. On my local machine i see the user option. Is it possible that pod's ignore this functionality, if i already have some user columns in the user profile added in functions.php? If yes, how i can move it to pods, without losing all 500 users data stored in these fields? Thanks a lot Martin

wreciak avatar Mar 08 '14 14:03 wreciak

If I'm reading PodsApi::save_pod() correctly, and I may not be, I think that list of content type to extends excludes any content type with any meta fields added to it.

@sc0ttkclark Am I right about that? If so is that the way it has to be, or could it check if Pods has added fields instead? Your answer dictates if this deserves bug label or docs label.

@wreciak Either way, if you get rid of the way you manually added the custom fields in your functions.php, you will still have the data in the database. That means that if you extend the users object with Pods after removing the code from functions.php, you can add the same fields, and the existing data will be accessible via those fields.

While this should not have any impact on the data in the database for those fields I STRONGLY recommend you backup your databsae before trying any of this.

Shelob9 avatar Mar 08 '14 20:03 Shelob9

When you extend the User object, just create your new fields in Pods with the same exact names you're using in your code-based approach. Nothing should break, it should all just work.

Regarding not seeing 'User' in the list, be sure to double check you don't already have a User pod, of any type.

sc0ttkclark avatar Mar 09 '14 00:03 sc0ttkclark