Skip to content

Custom Fields

Viniel Kumar edited this page Aug 29, 2019 · 14 revisions

Advanced Custom Fields

To connect the code with the WordPress admin panel, the Advanced Custom Fields Pro plugin was used.
Content of the custom fields can be changed by navigating to the appropriate page on the WordPress admin panel, scrolling until you see the custom field, making sure the field is enabled (checkbox), and editing the content of the field. To hide a field, disable it by navigating to the appropriate page on the WordPress admin panel, scrolling until you see the custom field, and unchecking enable. To save any changes, click "Update" on the top right.

List of Custom Fields

Carousel

  • Pages used: Home
  • Description: Autorotating carousel
  • Template: template-parts/carousel.php
  • CSS: assets/css/patients.css:209
  • JS: N/A
  • Fields:
    • Enable Carousel (True/False)
      • id: enable_carousel
    • Carousel Image (Repeater)
      • id: carousel_image
        • image (Image) Required
          • id: image

Paragraph

  • Pages used: Home, About
  • Description: Paragraph title and content
  • Template: template-parts/paragraph.php
  • CSS: N/A
  • JS: N/A
  • Fields:
    • Enable Paragraph Content (True/False)
      • id: enable_paragraph
    • Paragraph Title (Text) Required
      • id: paragraph_title
    • Paragraph Content (Wysiwyg Editor)
      • id: paragraph_content

PIE Helps Section

  • Pages used: Home
  • Description: Section with three icons and accompanying titles and text
  • Template: template-parts/help-section.php
  • CSS: assets/css/patients.css:224
  • JS: N/A
  • Fields:
    • Enable Help Section Content (True/False)
      • id: enable_help_section
    • Help Section Title (Text) *Required
      • id: help_section_title
  • Note that the fields below are combinations of (Image/Title/Text) for (Left/Middle/Right) columns
    • Left Column Image (Image)
      • id: hs_left_column_image
    • Left Column Title (Text)
      • id: hs_left_column_title
    • Left Column Text (Wysiwyg Editor)
      • id: hs_left_column_text
    • Middle Column Image (Image)
      • id: hs_middle_column_image
    • Middle Column Title (Text)
      • id: hs_middle_column_title
    • Middle Column Text (Wysiwyg Editor)
      • id: hs_middle_column_text
    • Right Column Image (Image)
      • id: hs_right_column_image
    • Right Column Title (Text)
      • id: hs_right_column_title
    • Right Column Text (Wysiwyg Editor)
      • id: hs_right_column_text

Outreach Section

  • Pages used: Home
  • Description: Outreach highlights displaying 3 most recent, the rest get archived (hidden unless button is clicked)
  • Template: template-parts/outreach.php
  • CSS: assets/css/patients.css:215
  • JS: assets/js/patients.js:61
  • Fields:
    • Enable Outreach Section (True/False)
      • id: enable_outreach_section
    • Outreach Title (Text)
      • id: outreach_title
    • Outreach (Repeater)
      • id: outreach
        • Image (Image) Required
          • id: image
        • Title (Text)
          • id: title
        • Content (Wysiswyg Editor) Required
          • id: content

Committees

  • Pages used: Engagements
  • Description: Extra content section
  • Template: template-parts/committees-section.php
  • CSS: N/A
  • JS: N/A
  • Fields:
    • Enable Committees Section (True/False)
      • id: enable_committees_section
    • Committees Title (Text)
      • id: committees_title
    • Committees Paragraph (Wysiwyg Editor)
      • id: committees_paragraph

Opportunities

  • Pages used: Engagements
  • Description: Table of upcoming opportunities with a title
  • Template: template-parts/opportunities-section.php
  • CSS: N/A
  • JS: N/A
  • Fields:
    • Enable Opportunities Section (True/False)
      • id: enable_opportunities_section
    • Opportunities Title (Text)
      • id: opportunities_title
    • Column One Title (Text)
      • id: column_one_title
    • Column Two Title (Text)
      • id: column_two_title
    • Column Three Title (Text)
      • id: column_three_title
    • Column Four Title (Text)
      • id: column_four_title
    • Opportunity (Repeater)
      • id: opportunity
        • Column 1 (Text Area)
          • id: column_1
        • Column 2 (Text Area)
          • id: column_2
        • Column 3 (Text Area)
          • id: column_3
        • Column 4 (Text Area)
          • id: column_4

Four icon section

  • Pages used: About
  • Description: Grid of four icons with accompanying titles and text
  • Template: template-parts/four-icon-section.php
  • CSS: assets/css/patients.css:241
  • JS: N/A
  • Fields:
    • Enable Four Icon Section (True/False)
      • id: enable_four_icon_section
  • Note that the fields below are combinations of (Image/Title/Text) for (Top Left/Top Right/Bottom Left/Bottom Right) parts
    • Top Left Image (Image)
      • id: fi_top_left_image
    • Top Left Title (Text)
      • id: fi_top_left_title
    • Top Left Text (Wysiwyg Editor)
      • id: fi_top_left_text
    • Top Right Image (Image)
      • id: fi_top_right_image
    • Top Right Title (Text)
      • id: fi_top_right_title
    • Top Right Text (Wysiwyg Editor)
      • id: fi_top_right_text
    • Bottom Left Image (Image)
      • id: fi_bottom_left_image
    • Bottom Left Title (Text)
      • id: fi_bottom_left_title
    • Bottom Left Text (Wysiwyg Editor)
      • id: fi_bottom_left_text
    • Bottom Right Image (Image)
      • id: fi_bottom_right_image
    • Bottom Right Title (Text)
      • id: fi_bottom_right_title
    • Bottom Right Text (Wysiwyg Editor)
      • id: fi_bottom_right_text

More About PIE

  • Pages used: About
  • Description: Alternating text and picture section
  • Template: template-parts/more-about-pie.php
  • CSS: assets/css/patients.css:343
  • JS: N/A
  • Fields:
    • Enable More About PIE (True/False)
      • id: enable_more_about_pie
    • Title (Text)
      • id: more_about_pie_title
    • More About PIE (Repeater)
      • id: more_about_pie
        • Image (Image) Required
          • id: image
        • Title (Text)
          • id: title
        • Content (Wysiwyg Editor) Required
          • id: content

Member Sign Up

  • Pages used: Members
  • Description: Member sign up form with title
  • Template: template-parts/member-sign-up.php
  • CSS: N/A
  • JS: N/A
  • Fields:
    • Enable Member Sign Up (True/False)
      • id: enable_member_sign_up
    • Form Title (Text)
      • id: member_sign_up_form_title
    • Contact Form 7 Shortcode (Text)
      • id: member_sign_up_contact_form_7_shortcode

Board of Directors

  • Pages used: Members
  • Description: Animated grid of board of directors
  • Template: template-parts/directors.php
  • CSS: assets/css/patients.css:394
  • JS: N/A
  • Fields:
    • Enable Directors Grid (True/False)
      • id: enable_directors_grid
    • Board of Directors Title (Text)
      • id: board_of_directors_title
    • Director (Repeater)
      • id: director
        • Director's Image (Image) Required
          • id: image
        • Director's Name (Text) Required
          • id: name
        • Director's Link (Link)
          • id: link
        • Director's Description (Text Area) Required
          • id: description

Organizations

  • Pages used: Members
  • Description: Table of organizations that PIE works with
  • Template: template-parts/organizations-section.php
  • CSS: assets/css/patients.css:252
  • JS: N/A
  • Fields:
    • Enable Organizations Section Content (True/False)
      • id: enable_organizations
    • Organizations Title (Text)
      • id: organizations_title
    • Organization Subtitle Left (Text)
      • id: organization_subtitle_left
    • Organization Subtitle Right (Text)
      • id: organization_subtitle_right
    • Organization (Repeater)
      • id: organization
        • Name (Text) Required
          • id: name
        • Image (Image)
          • id: image
        • Website Link (Link)
          • id: website_link

Engagement CPT Description

  • Pages used: Engagements
  • Description: Project/engagement description
  • Template: inc/engagements-cpt.php
  • CSS: assets/css/patients.css:266
  • JS: assets/js/patients.js:17
  • Fields:
    • Short description (Text)
      • id: short_description
    • Long description (Wysiwyg Editor)
      • id: long_description
    • Engagement link (Link)
      • id: link
    • Engagement type (Text)
      • id: engagement_type
    • Engagement requestor (Text)
      • id: requestor
    • Date of engagement (Date Picker)
      • id: engagement_date
    • Preferred contact method (Text)
      • id: contact_method
    • Program or affiliation (Text)
      • id: program
    • Number of patients requested (Number)
      • id: patients_requested
    • Commitment (Text)
      • id: commitment

Contact Forms

  • Pages used: Contact
  • Description: Different contact forms
  • Template: template-parts/contact-forms.php
  • CSS: assets/css/patients.css:437
  • JS: assets/js/patients.js:86
  • Fields:
    • Form 1 (Group)
      • id: form_1
        • Enable (True/False)
          • id: enable
        • Title (Text)
          • id: title
        • Shortcode (Text)
          • id: shortcode
    • Form 2 (Group)
      • id: form_2
        • Enable (True/False)
          • id: enable
        • Title (Text)
          • id: title
        • Shortcode (Text)
          • id: shortcode
    • Form 3 (Group)
      • id: form_3
        • Enable (True/False)
          • id: enable
        • Title (Text)
          • id: title
        • Shortcode (Text)
          • id: shortcode

Footer

  • Pages used: All pages
  • Description: Footer at the bottom of each page
  • Template: footer.php
  • CSS: assets/css/patients.css:448
  • JS: N/A
  • Fields:
    • Footer Left Column (Group)
      • id: footer_left_column
        • Title (Text)
          • id: title
        • Content (Text Area)
          • id: content
    • Footer Middle Column (Group)
      • id: footer_middle_column
        • Title (Text)
          • id: title
        • Content (Text Area)
          • id: content
    • Footer Right Column (Group)
      • id: footer_right_column
        • Title (Text)
          • id: title
        • Facebook Link (Link)
          • id: facebook_link
        • Twitter Link (Link)
          • id: twitter_link
        • Email Address (Email)
          • id: email_address
        • Button Label (Text)
          • id: button_label
        • Button Link (Link)
          • id: button_link

Theme Settings

  • Pages used: Home
  • Description: Ticker carousel
  • Template: inc/theme-settings.php
  • CSS: assets/css/patients.css:87
  • JS: N/A
  • Fields:
    • Home Page Ticker (Repeater)
      • id: home_page_ticker
        • Title (Text)
          • id: title
        • Date (Date Picker)
          • id: date
        • Button (Link)
          • id: button

404 Page

  • Pages used: 404
  • Description: 404 not found page
  • Template: 404.php
  • CSS: N/A
  • JS: N/A
  • Fields:
    • 404 Page Content (Wysiwyg Editor)
      • id: 404_page_content
    • 404 Page Button (Link)
      • id: 404_page_button