Jump to content

Recommended Posts

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 : .

Link to comment
https://forums.phpfreaks.com/topic/304383-noob-php-help-wordpress-related/
Share on other sites

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.

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"?

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/.

  • Like 1
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.