Employer and Occupation in Donor admin list not displaying
-
I’m trying to use the Occupation field as a custom field by changing the field title. This works fine on the frontend form and on the Donations cpt admin list and individual Donation cpt edit pages.
However, I can’t get the data to appear on the Donor admin pages. By default Seamless Donations displays Occupation and Employer columns in the Donor admin list, but even with my customizations disabled, that field data does not display in those columns (changing the column title works fine).
I see that the Occupation data is saved to the _dgx_donate_occupation field, but in cpt-donors.php lines 131-134 the admin column field is filled with data from _dgx_donate_donor_occupation. See below.
public function cell_donor_occupation ( $sCell, $iPostID ) { // cell_{post type}_{column key} return esc_attr ( get_post_meta ( $iPostID, '_dgx_donate_donor_occupation', true ) ); }
I don’t think this field actually exists, which is why no data appears on the Donor admin list. Further, it seems the _dgx_donate_occupation is only meta for the Donations cpt, not the Donor cpt, so displaying this data would require a connection between the two. I realize this connection exists, as some donation information is displayed on the donor page.
Any help on how to display post meta from Donations on the Donor admin list and single Donor edit pages?
Thanks very much!
- The topic ‘Employer and Occupation in Donor admin list not displaying’ is closed to new replies.