Table of Contents |
---|
The office_staff post type allows employees to be imported and displayed in the offices.
Create the spreadsheet
This can be done in any spreadsheet software, but LibreOffice Calc is recommended since you'll need to use that to convert it later anyway:
- Create your header row. The columns should be:
- post_type
- post_status
- post_title
- post_author
- post_name
- name_first_meta
- name_middle_meta
- name_last_meta
- title_meta
- email_meta
- phone_office_meta
- phone_mobile_meta
- phone_fax_meta
- address_before_meta
- address_id_meta
- address_after_meta
- office_ids_staff_meta
- office_ids_leadership_meta
- social_facebook_meta
- social_twitter_meta
- bio_meta
- responsibilities_meta
- Populate data:
- post_type = office_staff
- post_status = publish
- post_title = (combine the first and last names into one column for the title (=H2&", "&F2))
- post_author = (1=webteam/admin, 105=Rachel, 828=Jeff)
- post_name = (optional slug)
- name_first_meta = (first name)
- name_middle_meta = (middle name)
- name_last_meta = (last name)
- title_meta = (Job title)
- email_meta = (email address)
- phone_office_meta = (office phone number)
- phone_mobile_meta = (mobile phone number)
- phone_fax_meta = (fax phone number)
- address_before_meta = (Text shown one line above address)
- address_id_meta = (id of the address that represents the staff member's physical office location. See below for key.)
- address_after_meta = (Text shown one line below address)
- office_ids_staff_meta = (Double pipe delimited list of office ids. See below for instructions & key.)
- office_ids_leadership_meta = (Double pipe delimited list of office ids. See below for instructions & key.)
- social_facebook_meta = (link to Facebook account)
- social_twitter_meta = (link to Twitter account)
- bio_meta = (Biography. Must be formatted/encoded. Instructions coming soon.)
- responsibilities_meta = (Double pipe delimited list of responsibilities. See below for instructions.)
post_type | post_status | post_title | post_author | post_name | name_first_meta | name_middle_meta | name_last_meta | title_meta | email_meta | phone_office_meta | phone_mobile_meta | phone_fax_meta | address_before_meta | address_id_meta | address_after_meta | office_ids_staff_meta | office_ids_leadership_meta | social_facebook_meta | social_twitter_meta | bio_meta | responsibilities_meta |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
office_staff | publish | Murray, William | 1 | William | James | Murray | Actor | bmurray@uwsa.edu | 6085555555 | 6084444444 | 6083333333 | Text before address | 3646 | Text after address | 1950||2001||1946 | 1933||2377 | https://www.facebook.com/Bill-Murray-39529739799/?ref=br_rs | https://twitter.com/BillMurray | This is some unformatted text. | Responsibility One||Responsibility Two||Responsibility Three |
Convert to CSV using LibreOffice
- Open the Excel Spreadsheet in LibreOffice, and choose Save As.
- Select the filetype of csv.
- Confirm you want to save the document as a Text CSF.
- On the options screen:
- Select UTF-8 as charset.
- Field delimiter as ,
- Text delimiter as "
- Check the Quote all text cells box.
- Select OK.
Import Into Wordpress
- Tools > Import > CSV.
- Once the import is complete, clean out the trash.
...