jeremiah84 Posted July 22, 2017 Share Posted July 22, 2017 If anyone is familiar with modifying php files in wordpress, I am in desperate need of your help. Here is my situation: I've added some fields in the "create group" php file, beyond just the default "Group Name" and "Group Description" fields. The problem I have is that after the Group is created and I go to the "Manage" page of the Group, only what I've filled out for the "Group Name" and "Group Description" fields have been saved and carried over to that page; the other fields I've filled out are empty. I know this is probably an extremely simple thing to do for a person well-versed in php, but I am by no means a programmer and would just like these simple additions for my page. I have been trying for the past week to get this straightened out, but nothing is working. Please help me . Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/ Share on other sites More sharing options...
NotionCommotion Posted July 22, 2017 Share Posted July 22, 2017 Only there are some wordpress people on this forum, you probably not going to get any help on this question as it is. To help, someone needs to browse all the wordpress script to figure out what you are asking. If you identify the specific relevant sections of the PHP script, and just post that, you are more likely to get help. Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/#findComment-1548736 Share on other sites More sharing options...
maxxd Posted July 23, 2017 Share Posted July 23, 2017 "Groups" is not a basic WordPress function. What plugins have you installed? Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/#findComment-1548787 Share on other sites More sharing options...
jeremiah84 Posted July 23, 2017 Author Share Posted July 23, 2017 "Groups" is not a basic WordPress function. What plugins have you installed? Sorry, should've clarified that. The Buddypress plugin. Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/#findComment-1548788 Share on other sites More sharing options...
jeremiah84 Posted July 23, 2017 Author Share Posted July 23, 2017 Sorry, should've clarified that. The Buddypress plugin. To expand on that....If you or anyone is familiar with the buddypress plugin, I guess my main (and very broad) question is which files would I have to modify if I want to add a field similar to the "Group Name" and "Group Description"? Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/#findComment-1548790 Share on other sites More sharing options...
maxxd Posted July 24, 2017 Share Posted July 24, 2017 I don't know Buddypress, but you don't want to modify any of the plugin's files directly. Any changes you make will get overwritten when the plugin updates. You need to look for hooks (actions or filters) that fire right around where you want to add your fields and use those in your theme's functions.php file. You'll also have to hook into the save_post action to actually save the data. Your best bet is to start with the documentation: https://codex.buddypress.org/plugindev/ or https://codex.buddypress.org/developer/. 1 Quote Link to comment https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/#findComment-1548812 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.