[Resolved] Groups Extension API Question / Troubleshooting
-
Hi,
I am having a bit of trouble upgrading one of my custom groups plugins to the new Groups Extension API. I am sure the answer is probably quite easy for a hardcore developer but I am facing frustrations just trying get this working. Basically I am creating an About tab for Groups. In my version I have all the fields and they are saving right, the settings page is working… It’s the display tab for public users which I am having troubles with.. To make this question easy I will use the sample (#2) provided by Buddypress http://codex.buddypress.org/developer/group-extension-api/
All I am trying to do is display the new data I have saved in my new group tab for non admins. This is what I have tried so far with no success.
function display() { $setting = groups_get_groupmeta( $group_id, 'group_extension_example_2_setting' ); echo 'This plugin is 2x cooler!'; echo esc_attr( $setting ); }
and
function display($group_id) { $setting = groups_get_groupmeta( $group_id, 'group_extension_example_2_setting' ); echo 'This plugin is 2x cooler!'; echo esc_attr( $setting ); }
and
function display() { $setting = groups_get_groupmeta( $group_id, $meta_key = 'group_extension_example_2_setting'); echo 'This plugin is 2x cooler!'; echo esc_attr( $setting ); }
This code works fine on the settings page but not the public nav item page
$setting = groups_get_groupmeta( $group_id, ‘group_extension_example_2_setting’ );
echo esc_attr( $setting );The rest of the code is as per the example that’s provided by buddypress but none of these work… ?
I’ve tried a few other options but still no success. What am I doing wrong here, think I am close but just not working.
Help would be much appreciated.
Thanks
Billy
- The topic ‘[Resolved] Groups Extension API Question / Troubleshooting’ is closed to new replies.