jaredcobb / ccb-core

Church Community Builder Core API - A WordPress plugin to sync your church data
http://www.wpccb.com
GNU General Public License v2.0
8 stars 5 forks source link

main_leader information missing from Admin UI #23

Closed tamala73 closed 5 years ago

tamala73 commented 5 years ago

When I perform a group sync with the setting to 'Show In Admin UI?' I am not seeing the custom fields leader_full_name and leader_email.

jaredcobb commented 5 years ago

Hi @tamala73

The "Show In Admin UI" is a setting meant to allow your Groups and their taxonomies to be viewable in the menu like so:

screen shot 2019-01-06 at 9 09 09 am

However additional fields (that are not necessarily shared across all groups) are stored as something called Post Meta (aka Custom Fields).

Here's a bit more info on how various types of data get stored: https://github.com/jaredcobb/ccb-core/wiki/CCB-Entities

I recommend installing a plugin called Post Meta Inspector https://wordpress.org/plugins/post-meta-inspector/ which allows you to see that info directly in a Group's page (but only in the admin).

If you need to output post meta in your template, you would use the native WordPress function https://developer.wordpress.org/reference/functions/get_post_meta/

Finally, here's a good doc on Post Meta (aka Custom Fields) that has a lot of great info: https://codex.wordpress.org/Custom_Fields

tamala73 commented 5 years ago

Thanks!